diff --git a/configuration.nix b/configuration.nix index ba3bb10..bab92ca 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,17 +1,14 @@ -{ config, pkgs, ... }: - +{ pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix + ./modules/boot.nix ./modules/nvidia.nix ./modules/services.nix ./modules/styling.nix ]; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.loader.systemd-boot.configurationLimit = 10; nix.gc = { automatic = true; dates = "weekly"; @@ -27,7 +24,6 @@ }; }; - boot.initrd.luks.devices."luks-332a07bd-65fb-4d91-91ba-fe3f594063b1".device = "/dev/disk/by-uuid/332a07bd-65fb-4d91-91ba-fe3f594063b1"; networking.hostName = "nixos"; # Define your hostname. networking.networkmanager.enable = true; @@ -62,7 +58,7 @@ users.users.r3ddy = { isNormalUser = true; description = "Patrick Canal"; - extraGroups = [ "networkmanager" "wheel" ]; + extraGroups = [ "networkmanager" "wheel" "docker" ]; shell = pkgs.fish; }; @@ -78,6 +74,8 @@ # CLI utils appimage-run cmake + distrobox + docker fish fzf gcc @@ -117,6 +115,13 @@ programs.steam.enable = true; programs.steam.remotePlay.openFirewall = true; + virtualisation.docker = { + enable = true; + rootless = { + enable = true; + setSocketVariable = true; + }; + }; system.stateVersion = "24.05"; # Did you read the comment? } diff --git a/modules/boot.nix b/modules/boot.nix new file mode 100644 index 0000000..10325f1 --- /dev/null +++ b/modules/boot.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.loader.systemd-boot.configurationLimit = 10; + boot.initrd.luks.devices."luks-332a07bd-65fb-4d91-91ba-fe3f594063b1".device = "/dev/disk/by-uuid/332a07bd-65fb-4d91-91ba-fe3f594063b1"; +}