framework: add niri flake

This commit is contained in:
Tristan 2025-07-16 16:48:50 +01:00
commit c218bd400e
11 changed files with 286 additions and 154 deletions

View file

@ -8,7 +8,6 @@
}: let
user = config.user;
in {
nix = {
settings = {
experimental-features = ["nix-command" "flakes" "pipe-operators"];
@ -62,7 +61,8 @@ in {
i18n.defaultLocale = lib.mkDefault "en_GB.UTF-8";
services.xserver.xkb = {
layout = lib.mkDefault "gb";
layout = lib.mkDefault "us";
variant = lib.mkDefault "dvorak";
options = "caps:escape";
};
@ -112,5 +112,4 @@ in {
programs.command-not-found.enable = false;
programs.nix-index.enable = true;
programs.nh.enable = true;
}

View file

@ -1,12 +1,9 @@
command: {config, ...}: let
user = config.user;
in {
command: {user, ...}: {
services.greetd = {
enable = true;
settings = {
default_session = {
inherit command;
user = user;
inherit command user;
};
};
};

20
nixos/programs/niri.nix Normal file
View file

@ -0,0 +1,20 @@
{
pkgs,
inputs,
user,
...
}: {
programs.niri = {
enable = true;
};
imports = [
./pipewire.nix
../workstation.nix
inputs.niri-flake.nixosModules.niri
];
home-manager.users.${user}.imports = [
../../home/desktop/niri/.
];
}

View file

@ -55,6 +55,24 @@
useWallpaper = true;
};
};
fonts = {
serif = config.stylix.fonts.sansSerif;
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
monospace = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans Mono";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
};
qt.enable = true;