summaryrefslogtreecommitdiff
path: root/modules/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/common.nix')
-rw-r--r--modules/common.nix29
1 files changed, 22 insertions, 7 deletions
diff --git a/modules/common.nix b/modules/common.nix
index 6ca9591..091b8c9 100644
--- a/modules/common.nix
+++ b/modules/common.nix
@@ -1,4 +1,10 @@
-{ config, lib, pkgs, inputs, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ inputs,
+ ...
+}:
{
imports = [
@@ -9,7 +15,10 @@
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
# Experimental features
- nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.experimental-features = [
+ "nix-command"
+ "flakes"
+ ];
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
@@ -30,10 +39,17 @@
# User
users.users.christian = {
- isNormalUser = true;
- extraGroups = [ "wheel" "video" "render" "docker" ];
- };
- home-manager.users.christian = import ./home/christian.nix;
+ isNormalUser = true;
+ extraGroups = [
+ "wheel"
+ "video"
+ "render"
+ "docker"
+ ];
+ };
+ home-manager.users.christian = {
+ imports = [ ./home/christian.nix ];
+ };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
@@ -70,4 +86,3 @@
programs.nix-index-database.comma.enable = true;
programs.command-not-found.enable = false;
}
-