summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-25 02:51:06 -0700
committerFuwn <[email protected]>2025-05-25 02:51:06 -0700
commit1bf66ae55bc982a89b706fbc1e5abdfc55acc2a8 (patch)
tree92fd4af8024c5587ca67c7d5cc2939955fde697c
parentNara: Use unstable nixpkgs (diff)
downloadnixos-config-1bf66ae55bc982a89b706fbc1e5abdfc55acc2a8.tar.xz
nixos-config-1bf66ae55bc982a89b706fbc1e5abdfc55acc2a8.zip
Nara: Upgrade Determinate and nix-darwin
-rw-r--r--flake.lock201
-rw-r--r--flake.nix8
-rw-r--r--hosts/nara/configuration.nix5
-rw-r--r--hosts/nara/default.nix6
-rw-r--r--lib/kansai-pkgs.nix4
-rw-r--r--modules/mac/default.nix3
6 files changed, 85 insertions, 142 deletions
diff --git a/flake.lock b/flake.lock
index 1a037bf..2d16ca1 100644
--- a/flake.lock
+++ b/flake.lock
@@ -103,16 +103,16 @@
"brew-src": {
"flake": false,
"locked": {
- "lastModified": 1742457334,
- "narHash": "sha256-Gn7ruyb3NDFr+SsHBfA2NsJI8YkkWdECqLRj/xcjt+E=",
+ "lastModified": 1746795192,
+ "narHash": "sha256-Cv+RXuzmn2iGBY2Ny/nXBTH+LFKDWIvMxf9a+btKI6M=",
"owner": "Homebrew",
"repo": "brew",
- "rev": "f3bd91d3afe086824d24708230e1f0c7f943135a",
+ "rev": "6f39076b3c2251994419215279d0525ef667fc31",
"type": "github"
},
"original": {
"owner": "Homebrew",
- "ref": "4.4.25",
+ "ref": "4.5.2",
"repo": "brew",
"type": "github"
}
@@ -250,55 +250,55 @@
],
"determinate-nixd-x86_64-linux": "determinate-nixd-x86_64-linux",
"nix": "nix",
- "nixpkgs": "nixpkgs_4"
+ "nixpkgs": "nixpkgs_3"
},
"locked": {
- "lastModified": 1733950326,
- "narHash": "sha256-nUTutqzg/Z0eEXrC1ACTa4a9Ik5Iyxgqo8uL9DYib7I=",
- "rev": "657395244a854da1bc71e38454958ecd57c0e241",
- "revCount": 165,
+ "lastModified": 1748060044,
+ "narHash": "sha256-wusmQ7ckk9061PAYla08aucQovObhAHUZn9nDS632nI=",
+ "rev": "071ce9a58e7172055349bb5e1fe5899d198cc382",
+ "revCount": 237,
"type": "tarball",
- "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/0.1.165%2Brev-657395244a854da1bc71e38454958ecd57c0e241/0193b781-6c27-7703-bca6-fc9648fca81d/source.tar.gz"
+ "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/3.6.1/01970082-f815-7d4c-a05e-edb8b0cc65a4/source.tar.gz"
},
"original": {
"type": "tarball",
- "url": "https://flakehub.com/f/DeterminateSystems/determinate/0.1"
+ "url": "https://flakehub.com/f/DeterminateSystems/determinate/%2A"
}
},
"determinate-nixd-aarch64-darwin": {
"flake": false,
"locked": {
- "narHash": "sha256-I03XaJRNQHh/N3ea2qpMU78DahTm7tSfF+urRABhKiQ=",
+ "narHash": "sha256-1ZcAqTB6aTa5UrhRWxCK8ALOce/sqstm+L0swQAyZRM=",
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/macOS"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/macOS"
},
"original": {
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/macOS"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/macOS"
}
},
"determinate-nixd-aarch64-linux": {
"flake": false,
"locked": {
- "narHash": "sha256-yxF7hyInOc+S1BEaxjLBLHUFjSAjC0bRKh0glUt4ilo=",
+ "narHash": "sha256-YsGIhHRNqwLPH9NGcLKGoiAQ/WOvbQztf1mkKdejM6g=",
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/aarch64-linux"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/aarch64-linux"
},
"original": {
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/aarch64-linux"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/aarch64-linux"
}
},
"determinate-nixd-x86_64-linux": {
"flake": false,
"locked": {
- "narHash": "sha256-/LPSCwR/ueorahCcyUSVym3y3lnRXkc6pqWwW2T/yT8=",
+ "narHash": "sha256-ckrcvDvWvCnexfInWKf3eMGNGpxNn9JdDORi2D2SJR8=",
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/x86_64-linux"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/x86_64-linux"
},
"original": {
"type": "file",
- "url": "https://install.determinate.systems/determinate-nixd/tag/v0.2.6/x86_64-linux"
+ "url": "https://install.determinate.systems/determinate-nixd/tag/v3.6.1/x86_64-linux"
}
},
"devenv": {
@@ -309,7 +309,7 @@
"flake-compat": [
"flake-compat"
],
- "nix": "nix_3",
+ "nix": "nix_2",
"nixpkgs": [
"nixpkgs"
],
@@ -427,16 +427,15 @@
"nixpkgs-lib": [
"determinate",
"nix",
- "nix",
"nixpkgs"
]
},
"locked": {
- "lastModified": 1719994518,
- "narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
+ "lastModified": 1743550720,
+ "narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
- "rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
+ "rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
@@ -595,35 +594,23 @@
},
"git-hooks-nix": {
"inputs": {
- "flake-compat": [
- "determinate",
- "nix",
- "nix"
- ],
+ "flake-compat": "flake-compat",
"gitignore": [
"determinate",
- "nix",
"nix"
],
"nixpkgs": [
"determinate",
"nix",
- "nix",
- "nixpkgs"
- ],
- "nixpkgs-stable": [
- "determinate",
- "nix",
- "nix",
"nixpkgs"
]
},
"locked": {
- "lastModified": 1721042469,
- "narHash": "sha256-6FPUl7HVtvRHCCBQne7Ylp4p+dpP3P/OYuzjztZ4s70=",
+ "lastModified": 1747372754,
+ "narHash": "sha256-2Y53NGIX2vxfie1rOW0Qb86vjRZ7ngizoo+bnXU9D9k=",
"owner": "cachix",
"repo": "git-hooks.nix",
- "rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
+ "rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46",
"type": "github"
},
"original": {
@@ -659,11 +646,11 @@
]
},
"locked": {
- "lastModified": 1730490306,
- "narHash": "sha256-AvCVDswOUM9D368HxYD25RsSKp+5o0L0/JHADjLoD38=",
+ "lastModified": 1748134483,
+ "narHash": "sha256-5PBK1nV8X39K3qUj8B477Aa2RdbLq3m7wRxUKRtggX4=",
"owner": "nix-community",
"repo": "home-manager",
- "rev": "1743615b61c7285976f85b303a36cdf88a556503",
+ "rev": "c1e671036224089937e111e32ea899f59181c383",
"type": "github"
},
"original": {
@@ -1012,23 +999,6 @@
"libgit2": {
"flake": false,
"locked": {
- "lastModified": 1715853528,
- "narHash": "sha256-J2rCxTecyLbbDdsyBWn9w7r3pbKRMkI9E7RvRgAqBdY=",
- "owner": "libgit2",
- "repo": "libgit2",
- "rev": "36f7e21ad757a3dacc58cf7944329da6bc1d6e96",
- "type": "github"
- },
- "original": {
- "owner": "libgit2",
- "ref": "v1.8.1",
- "repo": "libgit2",
- "type": "github"
- }
- },
- "libgit2_2": {
- "flake": false,
- "locked": {
"lastModified": 1697646580,
"narHash": "sha256-oX4Z3S9WtJlwvj0uH9HlYcWv+x1hqp8mhXl7HsLu2f0=",
"owner": "libgit2",
@@ -1108,20 +1078,23 @@
},
"nix": {
"inputs": {
- "nix": "nix_2",
- "nixpkgs": "nixpkgs_3"
+ "flake-parts": "flake-parts",
+ "git-hooks-nix": "git-hooks-nix",
+ "nixpkgs": "nixpkgs_2",
+ "nixpkgs-23-11": "nixpkgs-23-11",
+ "nixpkgs-regression": "nixpkgs-regression"
},
"locked": {
- "lastModified": 1733248733,
- "narHash": "sha256-rOFE8TSwWoup+LPNbmtTs6oLy7lYZ12L9GN+aZuQQaA=",
- "rev": "98bbabc68ac8c897c2ad873c3557125691c45120",
- "revCount": 108,
+ "lastModified": 1748057284,
+ "narHash": "sha256-ZzKVI2vVcyryU8vKAIMQfBGXC+VXVntq29aqgASD0ws=",
+ "rev": "047584d03bad62361d0b11f4e883a4b8506f7a58",
+ "revCount": 20903,
"type": "tarball",
- "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/nix/2.25.3/01939864-5191-788c-b898-163d916a3333/source.tar.gz"
+ "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/nix-src/3.6.1/0197007c-8c9e-7b6e-acf2-a3500ba8816b/source.tar.gz"
},
"original": {
"type": "tarball",
- "url": "https://flakehub.com/f/DeterminateSystems/nix/2.0"
+ "url": "https://flakehub.com/f/DeterminateSystems/nix-src/%2A"
}
},
"nix-alien": {
@@ -1163,23 +1136,22 @@
]
},
"locked": {
- "lastModified": 1743127615,
- "narHash": "sha256-+sMGqywrSr50BGMLMeY789mSrzjkoxZiu61eWjYS/8o=",
+ "lastModified": 1748149228,
+ "narHash": "sha256-mmonYFesFo42UUS49Hd0bcbVJRWX/aHBCDYUkkvylf4=",
"owner": "LnL7",
"repo": "nix-darwin",
- "rev": "fc843893cecc1838a59713ee3e50e9e7edc6207c",
+ "rev": "a9939228f661df370c4094fe85f683e45d761dbe",
"type": "github"
},
"original": {
"owner": "LnL7",
- "ref": "nix-darwin-24.11",
"repo": "nix-darwin",
"type": "github"
}
},
"nix-darwin_2": {
"inputs": {
- "nixpkgs": "nixpkgs_6"
+ "nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1716329735,
@@ -1281,11 +1253,11 @@
]
},
"locked": {
- "lastModified": 1742619394,
- "narHash": "sha256-8uwIBjbKxeJ7u0VACSNs634HwtgRLxP6/+cIkUXmuyI=",
+ "lastModified": 1747444109,
+ "narHash": "sha256-fSufrKr8NdhLMuGZGwjGUfH+TIWrjFTRIBhgCRIyxno=",
"owner": "zhaofengli-wip",
"repo": "nix-homebrew",
- "rev": "04b0536479d2d2e8d71dc8c8ee97c2b61f0c9987",
+ "rev": "159f21ae77da757bbaeb98c0b16ff2e7b2738350",
"type": "github"
},
"original": {
@@ -1488,36 +1460,13 @@
},
"nix_2": {
"inputs": {
- "flake-compat": "flake-compat",
- "flake-parts": "flake-parts",
- "git-hooks-nix": "git-hooks-nix",
- "libgit2": "libgit2",
- "nixpkgs": "nixpkgs_2",
- "nixpkgs-23-11": "nixpkgs-23-11",
- "nixpkgs-regression": "nixpkgs-regression"
- },
- "locked": {
- "lastModified": 1732881227,
- "narHash": "sha256-T+wFMm3cj8pGJSwXmPuxG5pz+1gRDJoToF9OBxtzocA=",
- "rev": "218cd6c16c0981cc32a45e3a15be1d3c1a68eb85",
- "revCount": 18724,
- "type": "tarball",
- "url": "https://api.flakehub.com/f/pinned/NixOS/nix/2.25.3/01938786-bc70-79e3-b7ee-bb61f8e7f238/source.tar.gz"
- },
- "original": {
- "type": "tarball",
- "url": "https://flakehub.com/f/NixOS/nix/%3D2.25.3"
- }
- },
- "nix_3": {
- "inputs": {
"flake-compat": [
"devenv",
"flake-compat"
],
"flake-parts": "flake-parts_2",
- "libgit2": "libgit2_2",
- "nixpkgs": "nixpkgs_5",
+ "libgit2": "libgit2",
+ "nixpkgs": "nixpkgs_4",
"nixpkgs-23-11": "nixpkgs-23-11_2",
"nixpkgs-regression": "nixpkgs-regression_2",
"pre-commit-hooks": "pre-commit-hooks"
@@ -1587,16 +1536,16 @@
},
"nixpkgs-darwin": {
"locked": {
- "lastModified": 1748026106,
- "narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=",
+ "lastModified": 1747958103,
+ "narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "063f43f2dbdef86376cc29ad646c45c46e93234c",
+ "rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1",
"type": "github"
},
"original": {
"owner": "NixOS",
- "ref": "nixos-unstable",
+ "ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
@@ -1651,50 +1600,36 @@
},
"nixpkgs_2": {
"locked": {
- "lastModified": 1723688146,
- "narHash": "sha256-sqLwJcHYeWLOeP/XoLwAtYjr01TISlkOfz+NG82pbdg=",
+ "lastModified": 1748026106,
+ "narHash": "sha256-6m1Y3/4pVw1RWTsrkAK2VMYSzG4MMIj7sqUy7o8th1o=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "c3d4ac725177c030b1e289015989da2ad9d56af0",
+ "rev": "063f43f2dbdef86376cc29ad646c45c46e93234c",
"type": "github"
},
"original": {
"owner": "NixOS",
- "ref": "nixos-24.05",
+ "ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
- "lastModified": 1733120037,
- "narHash": "sha256-En+gSoVJ3iQKPDU1FHrR6zIxSLXKjzKY+pnh9tt+Yts=",
- "rev": "f9f0d5c5380be0a599b1fb54641fa99af8281539",
- "revCount": 710194,
+ "lastModified": 1747533086,
+ "narHash": "sha256-+8goyptSXa7qV0k5uPKyky58jpBjI/qkzsbwCZFvhRY=",
+ "rev": "8406224e30c258025cb8b31704bdb977a8f1f009",
+ "revCount": 802343,
"type": "tarball",
- "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.2411.710194%2Brev-f9f0d5c5380be0a599b1fb54641fa99af8281539/01938be8-64ce-75c6-94d4-dbc2e4d547fe/source.tar.gz"
+ "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.802343%2Brev-8406224e30c258025cb8b31704bdb977a8f1f009/0196ec33-1ffa-76fa-ad14-ac737caf6446/source.tar.gz"
},
"original": {
"type": "tarball",
- "url": "https://flakehub.com/f/NixOS/nixpkgs/%2A"
+ "url": "https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/0.1"
}
},
"nixpkgs_4": {
"locked": {
- "lastModified": 1733686850,
- "narHash": "sha256-NQEO/nZWWGTGlkBWtCs/1iF1yl2lmQ1oY/8YZrumn3I=",
- "rev": "dd51f52372a20a93c219e8216fe528a648ffcbf4",
- "revCount": 719099,
- "type": "tarball",
- "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.719099%2Brev-dd51f52372a20a93c219e8216fe528a648ffcbf4/0193af12-b91a-77b9-9c72-3172a023752d/source.tar.gz"
- },
- "original": {
- "type": "tarball",
- "url": "https://flakehub.com/f/DeterminateSystems/nixpkgs-weekly/0.1.tar.gz"
- }
- },
- "nixpkgs_5": {
- "locked": {
"lastModified": 1717432640,
"narHash": "sha256-+f9c4/ZX5MWDOuB1rKoWj+lBNm0z0rs4CK47HBLxy1o=",
"owner": "NixOS",
@@ -1709,7 +1644,7 @@
"type": "github"
}
},
- "nixpkgs_6": {
+ "nixpkgs_5": {
"locked": {
"lastModified": 1687274257,
"narHash": "sha256-TutzPriQcZ8FghDhEolnHcYU2oHIG5XWF+/SUBNnAOE=",
@@ -1722,7 +1657,7 @@
"type": "indirect"
}
},
- "nixpkgs_7": {
+ "nixpkgs_6": {
"locked": {
"lastModified": 1730272153,
"narHash": "sha256-B5WRZYsRlJgwVHIV6DvidFN7VX7Fg9uuwkRW9Ha8z+w=",
@@ -2013,7 +1948,7 @@
"nix-search": "nix-search",
"nix-thorium": "nix-thorium",
"nix2container": "nix2container",
- "nixpkgs": "nixpkgs_7",
+ "nixpkgs": "nixpkgs_6",
"nixpkgs-darwin": "nixpkgs-darwin",
"nixpkgs-stable": "nixpkgs-stable",
"notion-repackaged": "notion-repackaged",
diff --git a/flake.nix b/flake.nix
index 1984080..ebef8f5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,6 +7,7 @@
home-manager,
just-flake,
nixpkgs,
+ nixpkgs-darwin,
pre-commit-hooks,
self,
...
@@ -20,6 +21,7 @@
inherit
systemsAttributes
nixpkgs
+ nixpkgs-darwin
self
inputs
;
@@ -79,7 +81,7 @@
};
inputs = {
- determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/0.1";
+ determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
flake-root.url = "github:srid/flake-root";
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/=0.1.5.tar.gz";
just-flake.url = "github:juspay/just-flake";
@@ -87,7 +89,7 @@
nix-filter.url = "github:numtide/nix-filter";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/24.05";
- nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixos-unstable";
+ nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nur.url = "github:nix-community/NUR";
systems.url = "github:nix-systems/default";
@@ -294,7 +296,7 @@
};
nix-darwin = {
- url = "github:LnL7/nix-darwin/nix-darwin-24.11";
+ url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
diff --git a/hosts/nara/configuration.nix b/hosts/nara/configuration.nix
index 1517f20..dde8e8d 100644
--- a/hosts/nara/configuration.nix
+++ b/hosts/nara/configuration.nix
@@ -5,5 +5,8 @@
"${self}/modules/mac"
];
- system.stateVersion = 5;
+ system = {
+ stateVersion = 5;
+ primaryUser = "ebisu";
+ };
}
diff --git a/hosts/nara/default.nix b/hosts/nara/default.nix
index b2cd9d2..8015eca 100644
--- a/hosts/nara/default.nix
+++ b/hosts/nara/default.nix
@@ -4,7 +4,10 @@
self,
}:
let
- pkgs = (kansaiPkgs { })."aarch64-darwin";
+ pkgs =
+ (kansaiPkgs {
+ nixpkgsIsDarwin = true;
+ })."aarch64-darwin";
in
{
flake.darwinConfigurations.nara = inputs.nix-darwin.lib.darwinSystem {
@@ -12,7 +15,6 @@ in
modules = with inputs; [
./configuration.nix
- determinate.darwinModules.default
nix-homebrew.darwinModules.nix-homebrew
home-manager.darwinModules.home-manager
sops-nix.darwinModules.sops
diff --git a/lib/kansai-pkgs.nix b/lib/kansai-pkgs.nix
index 8e04078..916cb87 100644
--- a/lib/kansai-pkgs.nix
+++ b/lib/kansai-pkgs.nix
@@ -1,6 +1,7 @@
{
systemsAttributes,
nixpkgs,
+ nixpkgs-darwin,
self,
inputs,
}:
@@ -9,10 +10,11 @@
nixpkgsCudaSupport ? false,
nixpkgsAllowUnfreePredicate ? [ ],
nixpkgsExtraConfig ? { },
+ nixpkgsIsDarwin ? false,
}:
(systemsAttributes (
system:
- import nixpkgs {
+ import (if nixpkgsIsDarwin then nixpkgs-darwin else nixpkgs) {
inherit system;
overlays = (import "${self}/lib/overlays.nix" { inherit self; }) ++ [
diff --git a/modules/mac/default.nix b/modules/mac/default.nix
index f0cb03b..5ec2737 100644
--- a/modules/mac/default.nix
+++ b/modules/mac/default.nix
@@ -1,11 +1,10 @@
-{ lib, ... }:
{
imports = [
./programs
./users.nix
];
- security.pam.enableSudoTouchIdAuth = true;
+ security.pam.services.sudo_local.touchIdAuth = true;
nix = {
enable = false;