mirror of
https://github.com/sadan4/dotfiles.git
synced 2024-11-16 14:54:38 -05:00
264 current 2024-10-02 15:42:07 24.11.20240916.99dc878 6.11.0 *
This commit is contained in:
parent
ad27d55764
commit
1d4904a4c9
3 changed files with 27 additions and 3 deletions
|
@ -15,6 +15,7 @@ in
|
|||
./hardware-configuration.nix
|
||||
../../common/modules/audio.nix
|
||||
../../common/modules/kde.nix
|
||||
../../common/users/meyer
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
sops.defaultSopsFile = ../../secrets.yaml;
|
||||
|
@ -32,7 +33,6 @@ in
|
|||
"audio"
|
||||
"sound"
|
||||
"video"
|
||||
"networkmanager"
|
||||
"input"
|
||||
"tty"
|
||||
"plugdev"
|
||||
|
@ -63,7 +63,6 @@ in
|
|||
networking.hostName = "nix-desktop-evo4b5"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/New_York";
|
||||
|
@ -114,7 +113,6 @@ in
|
|||
|
||||
|
||||
# networking.nameservers = ["10.0.0.97" "1.1.1.1"];
|
||||
networking.nameservers = [ "10.0.0.97" ];
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
9
common/users/meyer/default.nix
Normal file
9
common/users/meyer/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
let
|
||||
NAME = "meyer";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import ../modules/networkManager.nix { inherit NAME; })
|
||||
];
|
||||
}
|
17
common/users/modules/networkManager.nix
Normal file
17
common/users/modules/networkManager.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ NAME }: { ... }: {
|
||||
users = {
|
||||
users = {
|
||||
"${NAME}" = {
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
};
|
||||
nameservers = [ "1.1.1.1" "1.0.0.1" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue