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";
|
||||
};
|
||||
outputs = { self, nixpkgs, home-manager }:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
home-manager,
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
hostname = "de-lacadie";
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
${hostname} = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
./hosts/${hostname}/configuration.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
# nur.nixosModules.nur
|
||||
];
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
nixosConfigurations =
|
||||
let
|
||||
hostnameToConfig = hostname: {
|
||||
name = hostname;
|
||||
value = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
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;
|
||||
|
||||
# Enable nvidia drivers and graphics.
|
||||
hardware.opengl = {
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
|
||||
# Load nvidia driver for Xorg and Wayland
|
||||
|
|
|
|||
Loading…
Reference in a new issue