diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nixos/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/modules/nixos/default.nix b/modules/nixos/default.nix new file mode 100644 index 0000000..155601a --- /dev/null +++ b/modules/nixos/default.nix @@ -0,0 +1,51 @@ +{ pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ]; + + # Enable experimental Nix features + nix.settings.experimental-features = "nix-command flakes"; + + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + + # Bootloader + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + # Networking + networking.hostName = "nixbox"; + networking.networkmanager.enable = true; + + # Timezone / locale + time.timeZone = "Europe/Oslo"; + i18n.defaultLocale = "en_US.UTF-8"; + + # User account + users.users.simenandre = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" ]; + shell = pkgs.zsh; + }; + programs.zsh.enable = true; + + # Core system packages + environment.systemPackages = with pkgs; [ + curl + git + wget + neovim + ]; + + # 1Password (for SSH signing) + programs._1password.enable = true; + programs._1password-gui.enable = true; + + # SSH + services.openssh.enable = true; + + # System state version – do not change after first installation + system.stateVersion = "24.11"; +} |
