Configuration is more flexible
Add new host must be easier
This commit is contained in:
parent
431c99a58e
commit
51fdbb4a87
16 changed files with 91 additions and 79 deletions
9
nixos/includes/desktop/pipewire.nix
Normal file
9
nixos/includes/desktop/pipewire.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
_: {
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
3
nixos/includes/desktop/swaylock.nix
Normal file
3
nixos/includes/desktop/swaylock.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
security.pam.services.swaylock = {};
|
||||
}
|
9
nixos/includes/desktop/xdg-portal.nix
Normal file
9
nixos/includes/desktop/xdg-portal.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ config, pkgs, ...}:
|
||||
{
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
# gtk portal needed to make gtk apps happy
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
};
|
||||
}
|
7
nixos/includes/gaming/steam.nix
Normal file
7
nixos/includes/gaming/steam.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
}
|
6
nixos/includes/hardware/bootloader.nix
Normal file
6
nixos/includes/hardware/bootloader.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.configurationLimit = 10;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
}
|
5
nixos/includes/system/doas.nix
Normal file
5
nixos/includes/system/doas.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ config, ...}:
|
||||
{
|
||||
security.doas.enable = true;
|
||||
security.sudo.enable = false;
|
||||
}
|
10
nixos/includes/system/flakes.nix
Normal file
10
nixos/includes/system/flakes.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
nix = {
|
||||
package = pkgs.nixUnstable;
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
6
nixos/includes/system/locales.nix
Normal file
6
nixos/includes/system/locales.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
time.timeZone = "Europe/Paris";
|
||||
# English locale with YYY/MM/DD date format
|
||||
i18n.defaultLocale = "en_DK.UTF-8";
|
||||
}
|
10
nixos/includes/system/lvm.nix
Normal file
10
nixos/includes/system/lvm.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, ... }: {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
lvm2_dmeventd
|
||||
];
|
||||
|
||||
services.lvm.enable = true;
|
||||
services.lvm.dmeventd.enable = true;
|
||||
services.lvm.boot.thin.enable = true;
|
||||
}
|
13
nixos/includes/system/neovim.nix
Normal file
13
nixos/includes/system/neovim.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
};
|
||||
}
|
3
nixos/includes/system/udisks2.nix
Normal file
3
nixos/includes/system/udisks2.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
services.udisks2.enable = true;
|
||||
}
|
25
nixos/includes/system/user.nix
Normal file
25
nixos/includes/system/user.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# Services
|
||||
services.pcscd.enable = true;
|
||||
|
||||
# Programs
|
||||
programs.ssh.startAgent = true;
|
||||
programs.zsh.enable = true;
|
||||
# Needed for home-manager systemd service
|
||||
programs.dconf.enable = true;
|
||||
|
||||
# Configs
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
users.users.ephase = {
|
||||
shell = pkgs.zsh;
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "video" "wheel" ];
|
||||
home = "/home/ephase";
|
||||
packages = with pkgs; [
|
||||
remmina
|
||||
gcc
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue