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
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
compositor = "niri";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
copland = nixpkgs.lib.nixosSystem {
|
copland = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs system; };
|
specialArgs = { inherit inputs system compositor; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.hostPlatform = system; }
|
{ nixpkgs.hostPlatform = system; }
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit inputs system; };
|
extraSpecialArgs = { inherit inputs system compositor; };
|
||||||
users.elars = import ./home;
|
users.elars = import ./home;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -2,11 +2,12 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
system,
|
system,
|
||||||
|
compositor,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./hyprland.nix ];
|
imports = [ (if compositor == "niri" then ./niri.nix else ./hyprland.nix) ];
|
||||||
|
|
||||||
home.username = "elars";
|
home.username = "elars";
|
||||||
home.homeDirectory = "/home/elars";
|
home.homeDirectory = "/home/elars";
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
{ ... }:
|
{ compositor, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./display
|
./display
|
||||||
./window-managers
|
./window-managers
|
||||||
./audio
|
./audio
|
||||||
|
(if compositor == "niri" then ./niri.nix else ./hyprland.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.mime = {
|
xdg.mime = {
|
||||||
|
|||||||
Reference in new issue
Block a user