add auto-login module
This commit is contained in:
parent
f839796dc2
commit
1444fd91c8
6 changed files with 28 additions and 44 deletions
21
flake.nix
21
flake.nix
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
./programs/kodi.nix
|
||||
./kodi.nix
|
||||
];
|
||||
roles.email = {
|
||||
enable = true;
|
||||
13
nixos/programs/auto-login.nix
Normal file
13
nixos/programs/auto-login.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
command: {config, ...}: let
|
||||
user = config.user;
|
||||
in {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_session = {
|
||||
inherit command;
|
||||
user = user;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
{config, ...}: let
|
||||
user = config.user;
|
||||
in {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
hypr_session = {
|
||||
command = "Hyprland";
|
||||
user = user;
|
||||
};
|
||||
default_session = hypr_session;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${user}.imports = [
|
||||
../../home/programs/hyprland.nix
|
||||
];
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
{config, ...}: let
|
||||
user = config.user;
|
||||
in {
|
||||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
sway_session = {
|
||||
command = "sway";
|
||||
user = user;
|
||||
};
|
||||
default_session = sway_session;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${user}.imports = [
|
||||
../../home/programs/sway.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue