move displays to hardware section
This commit is contained in:
parent
e4bbcbb7c5
commit
5558ffce13
8 changed files with 31 additions and 37 deletions
13
flake.nix
13
flake.nix
|
|
@ -28,22 +28,9 @@
|
|||
nixosConfigurations = {
|
||||
zenix = mkConf "zenix" {
|
||||
inherit pkgs nixpkgs system user userName home-manager hyprland;
|
||||
displays = [
|
||||
{
|
||||
name = "DP-1";
|
||||
resolution = {x=1920;y=1080;freq=144;};
|
||||
wallpaper = "~/Pictures/backgrounds/demonslayer.jpg";
|
||||
}
|
||||
{
|
||||
name = "HDMI-A-1";
|
||||
resolution = {x=1920;y=1080;freq=60;};
|
||||
wallpaper = "~/Pictures/backgrounds/nier.jpg";
|
||||
}
|
||||
];
|
||||
};
|
||||
FCS-Tristan-Nixbook = mkConf "work" {
|
||||
inherit pkgs nixpkgs system user userName home-manager hyprland;
|
||||
laptop = true;
|
||||
work = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -86,4 +86,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
roles.laptop.enable = true;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,4 +66,18 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
displays = [
|
||||
{
|
||||
name = "DP-1";
|
||||
resolution = {x=1920;y=1080;freq=144;};
|
||||
wallpaper = "~/Pictures/backgrounds/demonslayer.jpg";
|
||||
}
|
||||
{
|
||||
name = "HDMI-A-1";
|
||||
resolution = {x=1920;y=1080;freq=60;};
|
||||
wallpaper = "~/Pictures/backgrounds/nier.jpg";
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
{ user
|
||||
, name
|
||||
, hyprland
|
||||
, laptop ? false
|
||||
, work ? false
|
||||
, displays ? []
|
||||
, userName
|
||||
|
|
@ -33,12 +32,7 @@
|
|||
../system/${name}/home.nix
|
||||
];
|
||||
|
||||
roles.laptop.enable = laptop;
|
||||
roles.work.enable = work;
|
||||
roles.personal.enable = !work;
|
||||
displays = {
|
||||
enable = true;
|
||||
displays = displays;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ name:
|
|||
, hyprland
|
||||
, laptop ? false
|
||||
, work ? false
|
||||
, displays ? []
|
||||
, userName
|
||||
, ...
|
||||
}:
|
||||
|
|
@ -30,6 +29,6 @@ nixpkgs.lib.nixosSystem rec {
|
|||
hyprland.homeManagerModules.default
|
||||
];
|
||||
}
|
||||
(import ./home.nix { inherit user userName name hyprland laptop work displays; })
|
||||
(import ./home.nix { inherit user userName name hyprland laptop work; })
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,5 +81,15 @@ with lib;
|
|||
plugins = [ pkgs.networkmanager-openvpn ];
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,5 +172,9 @@
|
|||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
||||
'';
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.ip_unprivileged_port_start" = 53;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,10 +5,6 @@
|
|||
|
||||
networking.hostName = "FCS-Tristan-Nixbook";
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.ip_unprivileged_port_start" = 53;
|
||||
};
|
||||
|
||||
system.stateVersion = "22.11"; # do not change
|
||||
|
||||
security.pki.certificates = [
|
||||
|
|
@ -45,17 +41,5 @@
|
|||
''
|
||||
];
|
||||
|
||||
# dangerous
|
||||
# users.users.tristan.extraGroups = [ "docker" ];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue