refactor: revert username global var
This commit is contained in:
parent
d5b4b54403
commit
16f28bf227
11 changed files with 66 additions and 35 deletions
|
@ -1,6 +1,5 @@
|
|||
{ username, ... }:
|
||||
{
|
||||
services.getty = {
|
||||
autologinUser = "${username}";
|
||||
autologinUser = "rafiq";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
inputs,
|
||||
hostname,
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -18,7 +17,7 @@ let
|
|||
in
|
||||
{
|
||||
security.pam.services.hyprlock = { };
|
||||
home-manager.users.${username} = {
|
||||
home-manager.users.rafiq = {
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock;
|
||||
|
|
2
systems/modules/programs/tailscale.nix
Normal file
2
systems/modules/programs/tailscale.nix
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
9
systems/modules/security.nix
Normal file
9
systems/modules/security.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
secrets.password.neededForUsers = true;
|
||||
};
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
}
|
8
systems/modules/security/sops.nix
Normal file
8
systems/modules/security/sops.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
sops = {
|
||||
defaultSopsFile = ../../../secrets/secrets.yaml;
|
||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
secrets.password.neededForUsers = true;
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, username, ... }:
|
||||
{ inputs, ... }:
|
||||
let
|
||||
opacity = 0.8;
|
||||
toImport = [
|
||||
|
@ -25,12 +25,12 @@ in
|
|||
fonts.enableDefaultPackages = true;
|
||||
|
||||
imports = [ inputs.stylix.nixosModules.stylix ] ++ toImport;
|
||||
home-manager.users.${username}.imports = [ inputs.stylix.homeManagerModules.stylix ] ++ toImport;
|
||||
home-manager.users.rafiq.imports = [ inputs.stylix.homeManagerModules.stylix ] ++ toImport;
|
||||
|
||||
# Put options that only exist in the NixOS module here.
|
||||
stylix.homeManagerIntegration.autoImport = false;
|
||||
stylix.homeManagerIntegration.followSystem = false;
|
||||
|
||||
# Put options that only exist in the home-manager module here.
|
||||
# home-manager.users.${username}.stylix = {};
|
||||
# home-manager.users.rafiq.stylix = {};
|
||||
}
|
||||
|
|
16
systems/modules/users.nix
Normal file
16
systems/modules/users.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
home-manager.users.rafiq.imports = [ ../../users/rafiq.nix ];
|
||||
users.users.rafiq = {
|
||||
isNormalUser = true;
|
||||
description = "rafiq";
|
||||
hashedPasswordFile = config.sops.secrets.password.path;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
|
||||
];
|
||||
};
|
||||
}
|
16
systems/modules/users/rafiq.nix
Normal file
16
systems/modules/users/rafiq.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ inputs, config, ... }:
|
||||
{
|
||||
home-manager.users.rafiq.imports = [ ../../../users/rafiq.nix ];
|
||||
users.users.rafiq = {
|
||||
isNormalUser = true;
|
||||
description = "rafiq";
|
||||
hashedPasswordFile = config.sops.secrets.password.path;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdsZyY3gu8IGB8MzMnLdh+ClDxQQ2RYG9rkeetIKq8n"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue