From 737b2cad33f8e44bcfd8a1d3bdca10aa8b26b3e1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sat, 31 Aug 2024 02:35:42 +0800 Subject: [PATCH] dust: use etc overlay & userborn --- flake.lock | 8 ++++---- flake.nix | 3 ++- hosts/dust/default.nix | 7 +++++++ nixos/profiles/core/hardening.nix | 1 - 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index b4b3a74..de60f09 100644 --- a/flake.lock +++ b/flake.lock @@ -231,17 +231,17 @@ }, "nixpkgs": { "locked": { - "lastModified": 1724748588, - "narHash": "sha256-NlpGA4+AIf1dKNq76ps90rxowlFXUsV9x7vK/mN37JM=", + "lastModified": 1725013374, + "narHash": "sha256-fbz8MUVDWHchQSA4uguP9YYDXnX4bEdlP7YvsMcXZu4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a6292e34000dc93d43bccf78338770c1c5ec8a99", + "rev": "c169763c3087b02a8308e2f8a9bba77c428dcca1", "type": "github" }, "original": { "owner": "NixOS", - "ref": "nixpkgs-unstable", "repo": "nixpkgs", + "rev": "c169763c3087b02a8308e2f8a9bba77c428dcca1", "type": "github" } }, diff --git a/flake.nix b/flake.nix index c8dc615..5769346 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,8 @@ # `nixpkgs-unstable` contains less(?) jobs, and usually updates faster. # # REFERENCE: https://discourse.nixos.org/t/differences-between-nix-channels/13998/5 - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "github:NixOS/nixpkgs/c169763c3087b02a8308e2f8a9bba77c428dcca1"; # userborn + # nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; disko = { url = "github:nix-community/disko"; diff --git a/hosts/dust/default.nix b/hosts/dust/default.nix index 792453e..42ad5c6 100644 --- a/hosts/dust/default.nix +++ b/hosts/dust/default.nix @@ -21,6 +21,13 @@ time.timeZone = "Asia/Shanghai"; system.stateVersion = "24.05"; + # TODO: move to 'core' profile + system.etc.overlay.enable = true; + services.userborn.enable = true; + + # TODO: this is currently broken + # system.etc.overlay.mutable = false; + users.users = { "guanranwang" = { isNormalUser = true; diff --git a/nixos/profiles/core/hardening.nix b/nixos/profiles/core/hardening.nix index 80008e3..b2e74e9 100644 --- a/nixos/profiles/core/hardening.nix +++ b/nixos/profiles/core/hardening.nix @@ -17,7 +17,6 @@ "befs" "cramfs" "efs" - "erofs" "exofs" "freevxfs" "f2fs"