Compare commits

..

2 commits

Author SHA1 Message Date
vorboyvo a2b2057bb1 Changed graphics settings as per errors/warnings. 2024-07-11 12:44:01 -04:00
vorboyvo 08f9837fe1 Fixed the flake to not need branches. 2024-07-11 12:43:40 -04:00
2 changed files with 30 additions and 16 deletions

View file

@ -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"
]
);
};
}

View file

@ -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