userSettings set
This commit is contained in:
parent
1bef272fcc
commit
c06b47ea56
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# Home manager configuration
|
# Home manager configuration
|
||||||
home.username = "${username}";
|
home.username = "${userSettings.username}";
|
||||||
home.homeDirectory = "/home/${username}";
|
home.homeDirectory = "/home/${userSettings.username}";
|
||||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@ -13,7 +13,7 @@
|
|||||||
config = lib.mkIf config.program.git.enable {
|
config = lib.mkIf config.program.git.enable {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "${username}";
|
userName = "${userSettings.username}";
|
||||||
userEmail = "kohout.fi.2023@skola.ssps.cz";
|
userEmail = "kohout.fi.2023@skola.ssps.cz";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -17,6 +17,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${username}.extraGroups = [ "docker" ];
|
users.users.${userSettings.username}.extraGroups = [ "docker" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -18,7 +18,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.${username} = {
|
users.users.${userSettings.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = ["podman"];
|
extraGroups = ["podman"];
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -21,7 +21,7 @@
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
(lib.mkIf config.sys.desktop.steamdeck.enable {
|
(lib.mkIf config.sys.desktop.steamdeck.enable {
|
||||||
services.getty.autologinUser = "${username}";
|
services.getty.autologinUser = "${userSettings.username}";
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = [pkgs.mangohud];
|
systemPackages = [pkgs.mangohud];
|
||||||
loginShellInit = ''
|
loginShellInit = ''
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
hostname,
|
userSettings,
|
||||||
username,
|
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -13,7 +12,7 @@
|
|||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
(lib.mkIf config.sys.network.enable {
|
(lib.mkIf config.sys.network.enable {
|
||||||
networking.hostName = "${hostname}"; # Define your hostname.
|
networking.hostName = "${userSettings.hostname}"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# Configure network proxy if necessary
|
# Configure network proxy if necessary
|
||||||
@ -22,7 +21,7 @@
|
|||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
users.users.${username}.extraGroups = ["networkmanager"];
|
users.users.${userSettings.username}.extraGroups = ["networkmanager"];
|
||||||
})
|
})
|
||||||
(
|
(
|
||||||
lib.mkIf config.sys.bluetooth.enable {
|
lib.mkIf config.sys.bluetooth.enable {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -32,6 +32,6 @@
|
|||||||
services.ipp-usb.enable = true;
|
services.ipp-usb.enable = true;
|
||||||
hardware.sane.extraBackends = [pkgs.hplipWithPlugin];
|
hardware.sane.extraBackends = [pkgs.hplipWithPlugin];
|
||||||
|
|
||||||
users.users.${username}.extraGroups = ["lp" "scanner"];
|
users.users.${userSettings.username}.extraGroups = ["lp" "scanner"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options = {
|
options = {
|
||||||
@ -11,7 +12,7 @@
|
|||||||
config = lib.mkIf config.sys.style.enable {
|
config = lib.mkIf config.sys.style.enable {
|
||||||
stylix = {
|
stylix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
image = ../../../config/backgrounds/aurora_borealis.png;
|
image = ../../../config/backgrounds/${userSettings.background};
|
||||||
base16Scheme = "${pkgs-stable.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
base16Scheme = "${pkgs-stable.base16-schemes}/share/themes/catppuccin-mocha.yaml";
|
||||||
#base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
|
#base16Scheme = "${pkgs.base16-schemes}/share/themes/onedark.yaml";
|
||||||
#base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
#base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyo-night-dark.yaml";
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
pkgs-stable,
|
pkgs-stable,
|
||||||
username,
|
userSettings,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
@ -17,18 +17,18 @@
|
|||||||
|
|
||||||
# Home manager
|
# Home manager
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = {inherit inputs pkgs pkgs-stable username;};
|
extraSpecialArgs = {inherit inputs pkgs pkgs-stable userSettings;};
|
||||||
backupFileExtension = "backup";
|
backupFileExtension = "backup";
|
||||||
users = {
|
users = {
|
||||||
${username} = import ./home.nix;
|
${userSettings.username} = import ./home.nix;
|
||||||
};
|
};
|
||||||
sharedModules = [inputs.plasma-manager.homeManagerModules.plasma-manager];
|
sharedModules = [inputs.plasma-manager.homeManagerModules.plasma-manager];
|
||||||
};
|
};
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
users.users.${username} = {
|
users.users.${userSettings.username} = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "${username}";
|
description = "${userSettings.username}";
|
||||||
extraGroups = ["wheel"];
|
extraGroups = ["wheel"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
FLAKE = "/home/${username}/dotfiles";
|
FLAKE = "/home/${userSettings.username}/dotfiles";
|
||||||
|
|
||||||
DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
|
DEFAULT_BROWSER = "${pkgs.librewolf}/bin/librewolf";
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{username, ...}: {
|
{userSettings, ...}: {
|
||||||
# Home manager configuration
|
# Home manager configuration
|
||||||
home.username = "${username}";
|
home.username = "${userSettings.username}";
|
||||||
home.homeDirectory = "/home/${username}";
|
home.homeDirectory = "/home/${userSettings.username}";
|
||||||
home.stateVersion = "24.05"; # Please read the comment before changing.
|
home.stateVersion = "24.05"; # Please read the comment before changing.
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user