From 96eb7a6bf0811984773e8680f63c13a342951a15 Mon Sep 17 00:00:00 2001 From: Spectre Date: Sat, 8 Jun 2024 15:07:01 +0200 Subject: [PATCH] base --- system/base.nix | 28 +++++----------------------- system/default.nix | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 25 deletions(-) diff --git a/system/base.nix b/system/base.nix index 713d914d..13164c3b 100644 --- a/system/base.nix +++ b/system/base.nix @@ -1,28 +1,10 @@ {pkgs, ...}: { - boot.tmp.useTmpfs = true; - - time.timeZone = "Europe/Berlin"; + users.mutableUsers = false; + users.users.root.password = "nixos"; + services.getty.autologinUser = "root"; environment.systemPackages = with pkgs; [ - age - compsize - duf - eza - file - htop - btop - jq - yq - du-dust - ranger - ripgrep - sops - wget - wireguard-tools - zip + vim + git ]; - - environment.pathsToLink = ["/share/zsh"]; - - system.stateVersion = "24.11"; } diff --git a/system/default.nix b/system/default.nix index 3d7af254..300090e6 100644 --- a/system/default.nix +++ b/system/default.nix @@ -10,11 +10,21 @@ specialArgs = inputs; in { - build = nixpkgs.lib.nixosSystem { + base = nixpkgs.lib.nixosSystem { + ./common.nix + + conf.extraConfig + conf.hardware-configuration + + ./base.nix + ./boot.nix + }; + + full = nixpkgs.lib.nixosSystem { inherit system specialArgs; modules = [ - ./base.nix + ./common.nix conf.extraConfig conf.hardware-configuration