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
|
||||
system = "x86_64-linux";
|
||||
compositor = "niri";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
copland = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system compositor; };
|
||||
specialArgs = { inherit inputs system; };
|
||||
|
||||
modules = [
|
||||
{ nixpkgs.hostPlatform = system; }
|
||||
@@ -58,7 +57,7 @@
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
extraSpecialArgs = { inherit inputs system compositor; };
|
||||
extraSpecialArgs = { inherit inputs system; };
|
||||
users.elars = import ./home;
|
||||
};
|
||||
}
|
||||
|
||||
+4
-2
@@ -2,12 +2,14 @@
|
||||
pkgs,
|
||||
inputs,
|
||||
system,
|
||||
compositor,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (if compositor == "niri" then ./niri.nix else ./hyprland.nix) ];
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./niri.nix
|
||||
];
|
||||
|
||||
home.username = "elars";
|
||||
home.homeDirectory = "/home/elars";
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
{
|
||||
imports = [
|
||||
./hyprland.nix
|
||||
./niri.nix
|
||||
];
|
||||
}
|
||||
@@ -4,13 +4,8 @@
|
||||
programs.niri.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gnome
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
config.niri = lib.mkForce {
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
|
||||
config.niri = {
|
||||
default = [
|
||||
"gnome"
|
||||
"gtk"
|
||||
@@ -18,26 +13,4 @@
|
||||
"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