aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix48
1 files changed, 8 insertions, 40 deletions
diff --git a/flake.nix b/flake.nix
index ef3299b..ea35f66 100644
--- a/flake.nix
+++ b/flake.nix
@@ -38,22 +38,16 @@
editor = "nvim";
shell = "fish";
};
- pkgs-unstable = import nixpkgs-unstable {
- system = "x86_64-linux";
- config.allowUnfree = true;
- };
in
{
nixosConfigurations = {
saarni = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
specialArgs = {
inherit
agenix
inputs
outputs
vars
- pkgs-unstable
;
};
modules = [
@@ -71,7 +65,6 @@
vars
inputs
outputs
- pkgs-unstable
;
};
users = {
@@ -79,17 +72,16 @@
};
};
}
+ { nixpkgs.hostPlatform = "x86_64-linux"; }
];
};
pihlaja = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
specialArgs = {
inherit
agenix
inputs
outputs
vars
- pkgs-unstable
;
};
modules = [
@@ -107,7 +99,6 @@
vars
inputs
outputs
- pkgs-unstable
;
};
users = {
@@ -115,33 +106,21 @@
};
};
}
- #{
- #nixpkgs = {
- # config.cudaSupport = true;
- #hostPlatform = {
- # aesSupport = true;
- # avx2Support = true;
- # # useLLVM = true;
- # gcc = {
- # arch = "x86-64-v3";
- # };
- # system = "x86_64-linux";
- # linker = "mold";
- # libc = "glibc";
- #};
- #};
- #}
+ {
+ nixpkgs = {
+ config.cudaSupport = true;
+ hostPlatform = "x86_64-linux";
+ };
+ }
];
};
kataja = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
specialArgs = {
inherit
agenix
inputs
outputs
vars
- pkgs-unstable
;
};
modules = [
@@ -159,7 +138,6 @@
inputs
outputs
vars
- pkgs-unstable
;
};
users = {
@@ -170,17 +148,7 @@
{
nixpkgs = {
config.rocmSupport = true;
- #hostPlatform = {
- # aesSupport = true;
- # avx2Support = true;
- # # useLLVM = true;
- # gcc = {
- # arch = "x86-64-v3";
- # };
- # system = "x86_64-linux";
- # linker = "mold";
- # libc = "glibc";
- #};
+ hostPlatform = "x86_64-linux";
};
}
];