mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
1 parent
3faaad274e
commit
00ead502e6
4 files changed
+9
-34
No files matched your search
@@ -36,12 +36,11 @@
|
|||||||
}:
|
}:
|
||||||
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 compositor; };
|
specialArgs = { inherit inputs system; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
{ nixpkgs.hostPlatform = system; }
|
{ nixpkgs.hostPlatform = system; }
|
||||||
@@ -58,7 +57,7 @@
|
|||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit inputs system compositor; };
|
extraSpecialArgs = { inherit inputs system; };
|
||||||
users.elars = import ./home;
|
users.elars = import ./home;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-2
@@ -2,12 +2,14 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
system,
|
system,
|
||||||
compositor,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (if compositor == "niri" then ./niri.nix else ./hyprland.nix) ];
|
imports = [
|
||||||
|
./hyprland.nix
|
||||||
|
./niri.nix
|
||||||
|
];
|
||||||
|
|
||||||
home.username = "elars";
|
home.username = "elars";
|
||||||
home.homeDirectory = "/home/elars";
|
home.homeDirectory = "/home/elars";
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
./niri.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -4,13 +4,8 @@
|
|||||||
programs.niri.enable = true;
|
programs.niri.enable = true;
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
|
||||||
xdgOpenUsePortal = true;
|
config.niri = {
|
||||||
extraPortals = with pkgs; [
|
|
||||||
xdg-desktop-portal-gnome
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
];
|
|
||||||
config.niri = lib.mkForce {
|
|
||||||
default = [
|
default = [
|
||||||
"gnome"
|
"gnome"
|
||||||
"gtk"
|
"gtk"
|
||||||
@@ -18,26 +13,4 @@
|
|||||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
|
||||||
dbus.enable = true;
|
|
||||||
pipewire = {
|
|
||||||
enable = true;
|
|
||||||
pulse.enable = true;
|
|
||||||
wireplumber.enable = true;
|
|
||||||
};
|
|
||||||
gnome = {
|
|
||||||
gnome-keyring.enable = true;
|
|
||||||
gnome-settings-daemon.enable = lib.mkDefault false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.polkit.enable = true;
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
glib
|
|
||||||
dconf
|
|
||||||
dconf-editor
|
|
||||||
xdg-utils
|
|
||||||
xdg-user-dirs
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user