Skip to content

Commit

Permalink
Remove duplicated username
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 23, 2023
1 parent 2a2a524 commit 0695e7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ hostname, pkgs, ... }:
{ username, hostname, pkgs, ... }:
{
imports =
[
Expand Down Expand Up @@ -47,7 +47,7 @@
};

networking = {
hostName = "${hostname}";
hostName = hostname;
networkmanager.enable = true;
firewall.enable = false;
};
Expand Down Expand Up @@ -144,7 +144,7 @@
upower.enable = true;
};

users.users.sigmanificient = {
users.users."${username}" = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [ "docker" "networkmanager" "libvirtd" "wheel" ];
Expand Down
16 changes: 12 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
pkgs = nixpkgs.legacyPackages.${system};

default_modules = [
./config

nix-index-database.nixosModules.nix-index

home-manager.nixosModules.home-manager
Expand Down Expand Up @@ -65,9 +67,12 @@
Bacon = nixpkgs.lib.nixosSystem {
inherit system;

specialArgs = { hostname = "Bacon"; };
specialArgs = {
inherit username;
hostname = "Bacon";
};

modules = default_modules ++ [
./config
./hardware/bacon.nix

nixos-hardware.nixosModules.asus-battery
Expand All @@ -79,10 +84,13 @@

Sigmachine = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { hostname = "Sigmachine"; };

specialArgs = {
inherit username;
hostname = "Sigmachine";
};

modules = default_modules ++ [
./config
./hardware/sigmachine.nix
./config/sigmachine.nix
];
Expand Down

0 comments on commit 0695e7b

Please sign in to comment.