change username to a global var
This commit is contained in:
parent
f080989d8b
commit
d17afc3fb3
|
@ -40,6 +40,7 @@
|
|||
{ nixpkgs, self, ...} @ inputs:
|
||||
let
|
||||
selfPkgs = import ./pkgs;
|
||||
username = "frostphoenix";
|
||||
in
|
||||
{
|
||||
overlays.default = selfPkgs.overlay;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ pkgs, inputs, ...}:
|
||||
{ pkgs, inputs, username, ...}:
|
||||
let
|
||||
name = "FrostPhoenix";
|
||||
username = "frostphoenix";
|
||||
packages = with pkgs; [
|
||||
fish
|
||||
];
|
||||
|
@ -23,7 +21,7 @@ in
|
|||
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = name;
|
||||
description = ${username};
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, username, ... }:
|
||||
{
|
||||
# Add user to libvirtd group
|
||||
users.users.frostphoenix.extraGroups = [ "libvirtd" ];
|
||||
users.users.${username}.extraGroups = [ "libvirtd" ];
|
||||
|
||||
# Install necessary packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, username, ... }:
|
||||
{
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
layout = "us";
|
||||
displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "frostphoenix";
|
||||
user = ${username};
|
||||
};
|
||||
libinput = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
[audacious]
|
||||
equalizer_active=TRUE
|
||||
equalizer_bands=-1,1,2,2,1,0,0,-1,-1,-1
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{ pkgs, lib, config,... }:
|
||||
{ pkgs, lib, config, username, ... }:
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
profiles.frostphoenix = {
|
||||
profiles.${username} = {
|
||||
settings = {};
|
||||
isDefault = true;
|
||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
|
|
Loading…
Reference in a new issue