summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-06-25 10:24:46 -0300
committerLeonardo Santiago <[email protected]>2024-06-25 10:24:59 -0300
commit94e28dca93f8481715728b006943a791fdafda9e (patch)
tree885ce13346799f737b17d34b453b344ebc852e85
parent5b7c730721098a82546b8538e96d415ba5e8d914 (diff)
initial commit for rpi4
-rw-r--r--flake.lock6
-rw-r--r--flake.nix12
-rw-r--r--hosts/iori/configuration.nix17
-rw-r--r--users/leonardo.nix4
4 files changed, 32 insertions, 7 deletions
diff --git a/flake.lock b/flake.lock
index 96e5bbe..2ef14c1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -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": {
diff --git a/flake.nix b/flake.nix
index 59fe2ba..c35fc49 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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="> "