feat: system76-scheduler

This commit is contained in:
2026-01-16 22:22:12 +08:00
parent 5a1880587f
commit 35358cf01c
4 changed files with 54 additions and 17 deletions

21
flake.lock generated
View File

@@ -1097,6 +1097,7 @@
"plant": "plant",
"sops-nix": "sops-nix",
"stylix": "stylix",
"system76-scheduler-niri": "system76-scheduler-niri",
"treefmt": "treefmt",
"zen": "zen"
}
@@ -1173,6 +1174,26 @@
"type": "github"
}
},
"system76-scheduler-niri": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1768260017,
"narHash": "sha256-r1Y+TQLEC4dNxktRaDpP8vnWOha0MFrYsfrqPhV85BA=",
"owner": "Kirottu",
"repo": "system76-scheduler-niri",
"rev": "0ccb6c4d696c8db7c73153d1dcc2b2a2b2a37a84",
"type": "github"
},
"original": {
"owner": "Kirottu",
"repo": "system76-scheduler-niri",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,

View File

@@ -55,6 +55,10 @@
url = "github:danth/stylix";
inputs.nixpkgs.follows = "nixpkgs";
};
system76-scheduler-niri = {
url = "github:Kirottu/system76-scheduler-niri";
inputs.nixpkgs.follows = "nixpkgs";
};
# keep-sorted end
# Useful software

View File

@@ -15,10 +15,13 @@ let
hmModule = {
home-manager = {
sharedModules = [
# keep-sorted start
inputs.noctalia.homeModules.default
inputs.sops-nix.homeManagerModules.sops
inputs.stylix.homeModules.stylix
inputs.noctalia.homeModules.default
inputs.system76-scheduler-niri.homeModules.default
inputs.zen.homeModules.beta
# keep-sorted end
{
stylix.overlays.enable = lib.mkForce false;
}
@@ -121,12 +124,14 @@ in
(lib.mkAliasOptionModule [ "my" "hm" ] [ "home-manager" "users" vars.username ])
# Upstream modules
inputs.sops-nix.nixosModules.sops
inputs.impermanence.nixosModules.impermanence
inputs.home-manager.nixosModules.default
inputs.niri.nixosModules.niri
inputs.catppuccin.nixosModules.catppuccin
# keep-sorted start
inputs.angrr.nixosModules.angrr
inputs.catppuccin.nixosModules.catppuccin
inputs.home-manager.nixosModules.default
inputs.impermanence.nixosModules.impermanence
inputs.niri.nixosModules.niri
inputs.sops-nix.nixosModules.sops
# keep-sorted end
# pkgs and home-manager configuration
pkgsModule

View File

@@ -15,13 +15,26 @@ in
};
config = lib.mkIf cfg.enable {
programs.niri = {
enable = true;
package = pkg;
};
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
};
};
security.pam.services.login.enableGnomeKeyring = true;
services.gnome.gnome-keyring.enable = true;
my.persist.homeDirs = [
{
directory = ".local/share/keyrings";
mode = "0700";
}
];
xdg.portal = {
enable = true;
config = {
@@ -41,17 +54,9 @@ in
};
systemd.user.services.niri-flake-polkit.serviceConfig.ExecStart =
lib.mkForce "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
services.gnome.gnome-keyring.enable = true;
programs.niri = {
enable = true;
package = pkg;
};
services.displayManager = {
sddm = {
enable = true;
wayland.enable = true;
};
};
services.system76-scheduler.enable = true;
my.hm = {
home.packages = with pkgs; [
xwayland-satellite-unstable
@@ -68,6 +73,8 @@ in
xdg-terminal-exec
];
services.system76-scheduler-niri.enable = true;
programs.noctalia-shell = {
enable = true;
systemd.enable = true;