add auto-login module

This commit is contained in:
tristan 2024-02-09 22:09:03 +00:00
parent f839796dc2
commit 1444fd91c8
6 changed files with 28 additions and 44 deletions

View file

@ -21,6 +21,7 @@
pkgs = import inputs.nixpkgs {inherit system;};
user = "tristan";
userFullname = "Tristan Beedell";
auto-login = import ./nixos/programs/auto-login.nix;
mkConf = import ./lib/mkconf.nix {inherit inputs system user userFullname;};
in {
@ -29,22 +30,24 @@
zenix =
mkConf [
./hardware/zenix.nix
./nixos/programs/hyprland.nix
(auto-login "Hyprland")
./nixos/programs/gamer.nix
./nixos/programs/personal.nix
./nixos/programs/anki.nix
] [
./home/programs/gamer.nix
./home/programs/personal.nix
./home/programs/hyprland.nix
./home/programs/personal/.
];
FCS-Tristan-Nixbook =
mkConf [
./hardware/fcs-tristan-nixbook.nix
./nixos/programs/hyprland.nix
(auto-login "Hyprland")
./nixos/modules/work.nix
] [
./home/programs/work.nix
./home/programs/hyprland.nix
];
vm-sway =
@ -57,8 +60,10 @@
mkConf
[
./hardware/vm.nix
./nixos/programs/sway.nix
] [];
(auto-login "sway")
] [
./home/programs/sway.nix
];
vm-hyprland =
builtins.trace ''
@ -72,8 +77,10 @@
mkConf
[
./hardware/vm.nix
./nixos/programs/hyprland.nix
] [];
(./nixos/programs/auto-login.nix "Hyprland")
] [
./home/programs/hyprland.nix
];
vm-tty = mkConf [
./hardware/vm.nix