mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
1 parent
5a916ab018
commit
95b437970e
3 files changed
+7
-4
No files matched your search
@@ -36,11 +36,12 @@
|
||||
}:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
compositor = "niri";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
copland = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system; };
|
||||
specialArgs = { inherit inputs system compositor; };
|
||||
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = system; }
|
||||
@@ -57,7 +58,7 @@
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs system; };
|
||||
extraSpecialArgs = { inherit inputs system compositor; };
|
||||
users.elars = import ./home;
|
||||
};
|
||||
}
|
||||
|
||||
+2
-1
@@ -2,11 +2,12 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
system,
|
||||
compositor,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ./hyprland.nix ];
|
||||
imports = [ (if compositor == "niri" then ./niri.nix else ./hyprland.nix) ];
|
||||
|
||||
home.username = "elars";
|
||||
home.homeDirectory = "/home/elars";
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
{ ... }:
|
||||
{ compositor, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./display
|
||||
./window-managers
|
||||
./audio
|
||||
(if compositor == "niri" then ./niri.nix else ./hyprland.nix)
|
||||
];
|
||||
|
||||
xdg.mime = {
|
||||
|
||||
Reference in new issue
Block a user