Move common NixOS configuration to another module
This commit is contained in:
parent
0ebff98838
commit
07833fcdd4
4 changed files with 97 additions and 56 deletions
|
@ -15,7 +15,7 @@
|
|||
"/" = {
|
||||
device = "/dev/disk/by-uuid/144857c7-877b-46c7-94d9-30a6d6d27cf0";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd:9" ];
|
||||
options = [ "compress=zstd:15" ];
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
|
@ -26,13 +26,13 @@
|
|||
"/home" = {
|
||||
device = "/dev/disk/by-uuid/4bbd6139-7caa-4617-a94f-b185c5f6ca45";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd:9" ];
|
||||
options = [ "compress=zstd:15" ];
|
||||
};
|
||||
|
||||
"/mnt/Datos" = {
|
||||
device = "/dev/disk/by-uuid/994ef2bd-a9fb-4414-9a0a-19b150ffa452";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd:9" "user" "x-systemd.automount" "exec" ];
|
||||
options = [ "compress=zstd:15" "user" "x-systemd.automount" "exec" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -47,40 +47,11 @@
|
|||
useDHCP = lib.mkDefault true;
|
||||
};
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
time.timeZone = "Europe/Madrid";
|
||||
|
||||
i18n.defaultLocale = "es_ES.UTF-8";
|
||||
console = {
|
||||
keyMap = lib.mkForce "dvorak-es";
|
||||
useXkbConfig = true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
};
|
||||
|
||||
users = {
|
||||
defaultUserShell = pkgs.zsh;
|
||||
extraGroups.vboxusers.members = [ "avery" ];
|
||||
users.avery = {
|
||||
extraGroups = [ "wheel" ];
|
||||
isNormalUser = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment = {
|
||||
shells = with pkgs; [ zsh ];
|
||||
systemPackages = with pkgs; [ htop libjxl neovim ];
|
||||
};
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
fonts = {
|
||||
packages = with pkgs; [
|
||||
|
@ -97,30 +68,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
hyprland.enable = true;
|
||||
steam.enable = true;
|
||||
zsh.enable = true;
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ];
|
||||
};
|
||||
|
||||
security = {
|
||||
doas = {
|
||||
enable = true;
|
||||
extraRules = [{
|
||||
users = [ "avery" ];
|
||||
keepEnv = true;
|
||||
persist = true;
|
||||
}];
|
||||
};
|
||||
rtkit.enable = true;
|
||||
sudo.enable = false;
|
||||
};
|
||||
|
||||
services = {
|
||||
greetd = {
|
||||
enable = true;
|
||||
|
@ -140,7 +92,6 @@
|
|||
};
|
||||
pulse.enable = true;
|
||||
};
|
||||
openssh.enable = true;
|
||||
udisks2.enable = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue