mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 13:51:54 -05:00
users: added password option
This commit is contained in:
parent
4a2ded993c
commit
816c04c2a4
|
@ -34,8 +34,14 @@
|
||||||
zramSwap = {enable = true;};
|
zramSwap = {enable = true;};
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = false;
|
aly = {
|
||||||
dustin.enable = true;
|
enable = false;
|
||||||
|
password = "$y$j9T$Ug0ZLHQQuRciFJDgOI6r00$eHc.KyQY0oU4k0LKRiZiGWJ19jkKNWHpOoyCJbtJif8";
|
||||||
|
};
|
||||||
|
dustin = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$OXQYhj4IWjRJWWYsSwcqf.$lCcdq9S7m0EAdej9KMHWj9flH8K2pUb2gitNhLTlLG/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -47,8 +53,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.dustin.hashedPassword = "$y$j9T$OXQYhj4IWjRJWWYsSwcqf.$lCcdq9S7m0EAdej9KMHWj9flH8K2pUb2gitNhLTlLG/";
|
|
||||||
# users.users.aly.hashedPassword = "$y$j9T$Ug0ZLHQQuRciFJDgOI6r00$eHc.KyQY0oU4k0LKRiZiGWJ19jkKNWHpOoyCJbtJif8";
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,10 @@
|
||||||
zramSwap = {enable = true;};
|
zramSwap = {enable = true;};
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = true;
|
aly = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$O9NgTk6iRfh3mxiRDvfdm1$BjvsAKYEMB3C28652FF15cj/i.3TgQAObQvR0rN1E6C";
|
||||||
|
};
|
||||||
dustin.enable = false;
|
dustin.enable = false;
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
@ -50,7 +53,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.aly.hashedPassword = "$y$j9T$O9NgTk6iRfh3mxiRDvfdm1$BjvsAKYEMB3C28652FF15cj/i.3TgQAObQvR0rN1E6C";
|
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,14 @@ in {
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = true;
|
aly = {
|
||||||
dustin.enable = true;
|
enable = true;
|
||||||
|
password = "$y$j9T$SHPShqI2IpRE101Ey2ry/0$0mhW1f9LbVY02ifhJlP9XVImge9HOpf23s9i1JFLIt9";
|
||||||
|
};
|
||||||
|
dustin = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$3mMCBnUQ.xjuPIbSof7w0.$fPtRGblPRSwRLj7TFqk1nzuNQk2oVlgvb/bE47sghl.";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
binaryCache.enable = true;
|
binaryCache.enable = true;
|
||||||
|
|
|
@ -33,7 +33,10 @@
|
||||||
zramSwap = {enable = true;};
|
zramSwap = {enable = true;};
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = true;
|
aly = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$koxhEzkA4pYLsyIqZBTWM0$N8VW.JTM.HZZgNm7XgTxTXRzvYd7veA7TojG0gKOzO2";
|
||||||
|
};
|
||||||
dustin.enable = false;
|
dustin.enable = false;
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
@ -64,7 +67,5 @@
|
||||||
steamos.useSteamOSConfig = true;
|
steamos.useSteamOSConfig = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.aly.hashedPassword = "$y$j9T$koxhEzkA4pYLsyIqZBTWM0$N8VW.JTM.HZZgNm7XgTxTXRzvYd7veA7TojG0gKOzO2";
|
|
||||||
|
|
||||||
system.stateVersion = "23.11"; # Did you read the comment?
|
system.stateVersion = "23.11"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,10 @@ in {
|
||||||
zramSwap = {enable = true;};
|
zramSwap = {enable = true;};
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = true;
|
aly = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$Ug0ZLHQQuRciFJDgOI6r00$eHc.KyQY0oU4k0LKRiZiGWJ19jkKNWHpOoyCJbtJif8";
|
||||||
|
};
|
||||||
dustin.enable = false;
|
dustin.enable = false;
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
@ -97,7 +100,5 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.aly.hashedPassword = "$y$j9T$Ug0ZLHQQuRciFJDgOI6r00$eHc.KyQY0oU4k0LKRiZiGWJ19jkKNWHpOoyCJbtJif8";
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
user = {
|
user = {
|
||||||
aly.enable = true;
|
aly = {
|
||||||
|
enable = true;
|
||||||
|
password = "$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
||||||
|
};
|
||||||
dustin.enable = false;
|
dustin.enable = false;
|
||||||
};
|
};
|
||||||
desktop = {
|
desktop = {
|
||||||
|
@ -72,8 +75,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.aly.hashedPassword = "$y$j9T$VdtiEyMOegHpcUwgmCVFD0$K8Ne6.zk//VJNq2zxVQ0xE0Wg3LohvAQd3Xm9aXdM15";
|
|
||||||
|
|
||||||
# environment.persistence."/persist" = {
|
# environment.persistence."/persist" = {
|
||||||
# hideMounts = true;
|
# hideMounts = true;
|
||||||
# directories = [
|
# directories = [
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
alyraffauf.user.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
alyraffauf.user.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
||||||
|
alyraffauf.user.aly.password = lib.mkOption {
|
||||||
|
description = "Whether to sync music folder.";
|
||||||
|
type = lib.types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.user.aly.enable {
|
config = lib.mkIf config.alyraffauf.user.aly.enable {
|
||||||
|
@ -14,6 +18,7 @@
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Aly Raffauf";
|
description = "Aly Raffauf";
|
||||||
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
||||||
|
hashedPassword = config.alyraffauf.user.aly.password;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
|
@ -6,14 +7,18 @@
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
|
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
|
||||||
|
alyraffauf.user.dustin.password = lib.mkOption {
|
||||||
|
description = "Whether to sync music folder.";
|
||||||
|
type = lib.types.str;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.user.dustin.enable {
|
config = lib.mkIf config.alyraffauf.user.dustin.enable {
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.dustin = {
|
users.users.dustin = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Dustin Raffauf";
|
description = "Dustin Raffauf";
|
||||||
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
||||||
|
hashedPassword = config.alyraffauf.user.dustin.password;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue