summaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2025-12-30 00:25:06 +0100
committerandromeda <andromeda@lenovo>2025-12-30 00:27:14 +0100
commita7c4b7dcd1f5d221b976fc65b6f82e501f87738d (patch)
tree77006f72d6431bee0e825fc1e62de3286890b53b /configuration.nix
parent52e547c0a4569c76984423ba118f0c5554b6a012 (diff)
parentabab971ba65b74ba4928c674c96244da8d9ef92b (diff)
works
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix32
1 files changed, 20 insertions, 12 deletions
diff --git a/configuration.nix b/configuration.nix
index 4bdff80..0f42365 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -1,9 +1,13 @@
-{lib, ...}: {
+{
+ lib,
+ machine,
+ ...
+}: {
boot.loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
- environment.persistence."/persist" = {
+ environment.persistence."/nix/persist" = {
enable = true;
hideMounts = true;
directories = [
@@ -15,18 +19,22 @@
];
files = [
"/etc/machine-id"
- "/etc/shadow"
- "/etc/shadow-"
- "/etc/passwd"
- "/etc/passwd-"
"/etc/ly/save.txt"
];
- users."mtgmonkey" = {
+ users."andromeda" = {
directories = [
- "conf"
- "Downloads"
".backups"
+ ".local/share/Anki2"
+ ".local/share/chat.fluffy.fluffychat"
+ ".local/share/zoxide"
".ssh"
+ "conf"
+ "Downloads"
+ "pp"
+ ];
+ files = [
+ ".bash_history"
+ ".brush_history"
];
};
};
@@ -38,7 +46,7 @@
networking = {
dhcpcd.enable = true;
firewall.enable = true;
- hostName = "nixos";
+ hostName = machine.hostname;
networkmanager.enable = true;
};
nix.settings.experimental-features = [
@@ -68,9 +76,9 @@
};
system.stateVersion = "26.05";
time.timeZone = "Europe/Berlin";
- users.users."mtgmonkey" = {
+ users.users."andromeda" = {
isNormalUser = true;
- description = "mtgmonkey";
+ description = "andromeda";
initialPassword = "password";
extraGroups = [
"networkmanager"