mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-12 07:23:02 -04:00
move nix to its own file
This commit is contained in:
parent
79f717b997
commit
1bc5b4d472
2 changed files with 20 additions and 8 deletions
|
@ -23,6 +23,7 @@
|
||||||
../../common/systemModules/printing.nix
|
../../common/systemModules/printing.nix
|
||||||
../../common/systemModules/stylix.nix
|
../../common/systemModules/stylix.nix
|
||||||
../../common/systemModules/debug.nix
|
../../common/systemModules/debug.nix
|
||||||
|
../../common/systemModules/nix.nix
|
||||||
# USERS
|
# USERS
|
||||||
../../common/users/meyer
|
../../common/users/meyer
|
||||||
];
|
];
|
||||||
|
@ -32,8 +33,6 @@
|
||||||
dev.enable = true;
|
dev.enable = true;
|
||||||
};
|
};
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
|
|
||||||
nix.package = stable.nix;
|
|
||||||
hardware.i2c.enable = true;
|
hardware.i2c.enable = true;
|
||||||
hardware.amdgpu.opencl.enable = true;
|
hardware.amdgpu.opencl.enable = true;
|
||||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
@ -45,13 +44,7 @@
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.settings.experimental-features = [
|
|
||||||
"nix-command"
|
|
||||||
"flakes"
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
teamviewer.enable = true;
|
teamviewer.enable = true;
|
||||||
|
|
19
common/systemModules/nix.nix
Normal file
19
common/systemModules/nix.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
stable,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
extra-platforms = config.boot.binfmt.emulatedSystems;
|
||||||
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
package = stable.nix;
|
||||||
|
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue