why does this not work???

This commit is contained in:
twoneis 2023-11-19 20:17:36 +01:00
parent 63a430a221
commit 57674748b1
3 changed files with 17 additions and 150 deletions

145
flake.lock generated
View file

@ -1,51 +1,6 @@
{ {
"nodes": { "nodes": {
"cosmic-comp": {
"inputs": {
"crane": "crane",
"nix-filter": "nix-filter",
"nixpkgs": [
"nixpkgs"
],
"parts": "parts",
"rust": "rust"
},
"locked": {
"lastModified": 1700158862,
"narHash": "sha256-mtBzW2UoW0FXLuVuinSUFVOW/1wKo/7nlxq7ZIzpBr0=",
"owner": "pop-os",
"repo": "cosmic-comp",
"rev": "92c16bd4adabbd00123284176a2e4cc52b5131c7",
"type": "github"
},
"original": {
"owner": "pop-os",
"repo": "cosmic-comp",
"type": "github"
}
},
"crane": { "crane": {
"inputs": {
"nixpkgs": [
"cosmic-comp",
"nixpkgs"
]
},
"locked": {
"lastModified": 1699548976,
"narHash": "sha256-xnpxms0koM8mQpxIup9JnT0F7GrKdvv0QvtxvRuOYR4=",
"owner": "ipetkov",
"repo": "crane",
"rev": "6849911446e18e520970cc6b7a691e64ee90d649",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"crane_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"niri", "niri",
@ -84,24 +39,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1681202837,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -124,13 +61,13 @@
}, },
"niri": { "niri": {
"inputs": { "inputs": {
"crane": "crane_2", "crane": "crane",
"nix-filter": "nix-filter_2", "nix-filter": "nix-filter",
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
], ],
"parts": "parts_2", "parts": "parts",
"rust": "rust_2" "rust": "rust"
}, },
"locked": { "locked": {
"lastModified": 1700406443, "lastModified": 1700406443,
@ -147,21 +84,6 @@
} }
}, },
"nix-filter": { "nix-filter": {
"locked": {
"lastModified": 1687178632,
"narHash": "sha256-HS7YR5erss0JCaUijPeyg2XrisEb959FIct3n2TMGbE=",
"owner": "numtide",
"repo": "nix-filter",
"rev": "d90c75e8319d0dd9be67d933d8eb9d0894ec9174",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "nix-filter",
"type": "github"
}
},
"nix-filter_2": {
"locked": { "locked": {
"lastModified": 1694857738, "lastModified": 1694857738,
"narHash": "sha256-bxxNyLHjhu0N8T3REINXQ2ZkJco0ABFPn6PIe2QUfqo=", "narHash": "sha256-bxxNyLHjhu0N8T3REINXQ2ZkJco0ABFPn6PIe2QUfqo=",
@ -209,27 +131,6 @@
} }
}, },
"parts": { "parts": {
"inputs": {
"nixpkgs-lib": [
"cosmic-comp",
"nixpkgs"
]
},
"locked": {
"lastModified": 1688466019,
"narHash": "sha256-VeM2akYrBYMsb4W/MmBo1zmaMfgbL4cH3Pu8PGyIwJ0=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "8e8d955c22df93dbe24f19ea04f47a74adbdc5ec",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"parts_2": {
"inputs": { "inputs": {
"nixpkgs-lib": [ "nixpkgs-lib": [
"niri", "niri",
@ -252,7 +153,6 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"cosmic-comp": "cosmic-comp",
"home-manager": "home-manager", "home-manager": "home-manager",
"niri": "niri", "niri": "niri",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
@ -262,28 +162,6 @@
"rust": { "rust": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"nixpkgs": [
"cosmic-comp",
"nixpkgs"
]
},
"locked": {
"lastModified": 1688438033,
"narHash": "sha256-wOmpZis06pVKTR+5meGwhrW10/buf98lnA26uQLaqek=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "c3e43223dece545cfe06ddd92fd782adc73d56c3",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust_2": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"niri", "niri",
"nixpkgs" "nixpkgs"
@ -317,21 +195,6 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -19,21 +19,19 @@
url = "github:twoneis/niri"; url = "github:twoneis/niri";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
cosmic-comp = {
url = "github:pop-os/cosmic-comp";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { nixpkgs, home-manager, nixos-hardware, niri, ... }: outputs = { self, nixpkgs, home-manager, nixos-hardware, ... }@inputs:
let let
x86 = "x86_64-linux"; x86 = "x86_64-linux";
common = ./modules/system; common = ./modules/system;
in { in {
nixosConfigurations = { nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem { desktop = nixpkgs.lib.nixosSystem {
specialArgs = { inherit x86; }; specialArgs = {
inherit x86;
inputs = inputs;
};
modules = [ modules = [
common common
@ -50,7 +48,10 @@
}; };
surface = nixpkgs.lib.nixosSystem { surface = nixpkgs.lib.nixosSystem {
specialArgs = { inherit x86; }; specialArgs = {
inherit x86;
inputs = inputs;
};
modules = [ modules = [
common common

View file

@ -1,5 +1,8 @@
{ niri, ... }: { { inputs, ... }: {
environment.systemPackages = [ inputs.niri.packages.x86_64-linux.niri ];
/*
services.xserver.displayManager.sessionPackages = [ services.xserver.displayManager.sessionPackages = [
niri niri
]; ];
*/
} }