diff options
-rw-r--r-- | flake.lock | 6 | ||||
-rw-r--r-- | flake.nix | 12 | ||||
-rw-r--r-- | hosts/iori/configuration.nix | 17 | ||||
-rw-r--r-- | users/leonardo.nix | 4 |
4 files changed, 32 insertions, 7 deletions
@@ -225,11 +225,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1718160348, - "narHash": "sha256-9YrUjdztqi4Gz8n3mBuqvCkMo4ojrA6nASwyIKWMpus=", + "lastModified": 1718318537, + "narHash": "sha256-4Zu0RYRcAY/VWuu6awwq4opuiD//ahpc2aFHg2CWqFY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "57d6973abba7ea108bac64ae7629e7431e0199b6", + "rev": "e9ee548d90ff586a6471b4ae80ae9cfcbceb3420", "type": "github" }, "original": { @@ -53,7 +53,15 @@ ]; }; in { - nixosConfigurations = listToAttrs - (map (host: {name = host; value = defaultNixosSystem host; }) hosts); + nixosConfigurations = + (listToAttrs (map (host: {name = host; value = defaultNixosSystem host; }) hosts)) + // { iori = nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/iori/configuration.nix + ]; + }; + }; }; } diff --git a/hosts/iori/configuration.nix b/hosts/iori/configuration.nix new file mode 100644 index 0000000..db84c09 --- /dev/null +++ b/hosts/iori/configuration.nix @@ -0,0 +1,17 @@ +{ pkgs, inputs, ... }: +{ + imports = + [ inputs.nixos-hardware.nixosModules.raspberry-pi-4 ]; + # hardware = { + # raspberry-pi."4".apply-overlays-dtmerge.enable = true; + # }; + nixpkgs.overlays = [ + (final: super: { + makeModulesClosure = x: + super.makeModulesClosure (x // { allowMissing = true; }); + }) + ]; + + networking.hostName = "iori"; + system.stateVersion = "23.11"; +} diff --git a/users/leonardo.nix b/users/leonardo.nix index 7b27d9d..415f298 100644 --- a/users/leonardo.nix +++ b/users/leonardo.nix @@ -56,8 +56,8 @@ in PS1="> " ;; xterm*|rxvt*|eterm*|screen*) - PS1="\033[1;95m[\h]\033[0m \033[0;32m\w\033[0m :: " - PS1=$PS1'$(vterm_prompt_end)' + PS1="\[\033[1;95m\][\h]\[\033[0m\] \[\033[0;32m\]\w\[\033[0m\] :: " + PS1=$PS1'\[$(vterm_prompt_end)\]' ;; *) PS1="> " |