mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat: switch to niri+noctalia
This commit is contained in:
parent
a343de7a90
commit
b45746e127
34 changed files with 2726 additions and 1315 deletions
|
|
@ -1,33 +1,30 @@
|
|||
{ inputs, lib, config, pkgs, ... }:
|
||||
let
|
||||
moduleName = "niri";
|
||||
in
|
||||
{ self, inputs, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
inputs.niri-flake.nixosModules.niri
|
||||
];
|
||||
options.swarselmodules.${moduleName} = lib.mkEnableOption "${moduleName} settings";
|
||||
config = lib.mkIf config.swarselmodules.${moduleName}
|
||||
{
|
||||
config = {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
wayland-utils
|
||||
libsecret
|
||||
cage
|
||||
gamescope
|
||||
xwayland-satellite-unstable
|
||||
];
|
||||
|
||||
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
package = pkgs.niri-unstable; # the actual niri that will be installed and used
|
||||
};
|
||||
} // {
|
||||
niri-flake.cache.enable = true;
|
||||
programs.niri = {
|
||||
package = null;
|
||||
home-manager.users.${config.swarselsystems.mainUser}.imports = [
|
||||
"${self}/modules/home/optional/niri.nix"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
wayland-utils
|
||||
libsecret
|
||||
cage
|
||||
gamescope
|
||||
xwayland-satellite-unstable
|
||||
];
|
||||
|
||||
|
||||
programs = {
|
||||
niri = {
|
||||
enable = true;
|
||||
package = pkgs.niri-stable; # the actual niri that will be installed and used
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
17
modules/nixos/optional/noctalia.nix
Normal file
17
modules/nixos/optional/noctalia.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ self, inputs, config, ... }:
|
||||
{
|
||||
disabledModules = [ "programs/gpu-screen-recorder.nix" ];
|
||||
imports = [
|
||||
"${inputs.nixpkgs-dev}/nixos/modules/programs/gpu-screen-recorder.nix"
|
||||
];
|
||||
config = {
|
||||
home-manager.users.${config.swarselsystems.mainUser}.imports = [
|
||||
"${self}/modules/home/optional/noctalia.nix"
|
||||
];
|
||||
services = {
|
||||
upower.enable = true; # needed for battery percentage
|
||||
gnome.evolution-data-server.enable = true; # needed for calendar integration
|
||||
};
|
||||
programs.gpu-screen-recorder.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue