Compare commits
2 commits
bde883ccf6
...
a2b2057bb1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2b2057bb1 | ||
|
|
08f9837fe1 |
41
flake.nix
41
flake.nix
|
|
@ -20,20 +20,35 @@
|
||||||
|
|
||||||
# nur.url = "github:nix-community/NUR";
|
# nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager }:
|
outputs =
|
||||||
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
home-manager,
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
hostname = "de-lacadie";
|
in
|
||||||
in {
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations =
|
||||||
${hostname} = nixpkgs.lib.nixosSystem {
|
let
|
||||||
inherit system;
|
hostnameToConfig = hostname: {
|
||||||
modules = [
|
name = hostname;
|
||||||
./hosts/${hostname}/configuration.nix
|
value = nixpkgs.lib.nixosSystem {
|
||||||
home-manager.nixosModules.home-manager
|
inherit system;
|
||||||
# nur.nixosModules.nur
|
modules = [
|
||||||
];
|
./hosts/${hostname}/configuration.nix
|
||||||
};
|
home-manager.nixosModules.home-manager
|
||||||
};
|
# nur.nixosModules.nur
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
builtins.listToAttrs (
|
||||||
|
builtins.map hostnameToConfig [
|
||||||
|
"randolph"
|
||||||
|
"de-lacadie"
|
||||||
|
]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,10 +70,9 @@
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
# Enable nvidia drivers and graphics.
|
# Enable nvidia drivers and graphics.
|
||||||
hardware.opengl = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
enable32Bit = true;
|
||||||
driSupport32Bit = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue