mecure: Initial config
This commit is contained in:
parent
5517dffa21
commit
87c74f1079
4 changed files with 49 additions and 8 deletions
22
flake.lock
generated
22
flake.lock
generated
|
|
@ -105,6 +105,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1765066094,
|
||||
"narHash": "sha256-0YSU35gfRFJzx/lTGgOt6ubP8K6LeW0vaywzNNqxkl4=",
|
||||
"owner": "nix-darwin",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "688427b1aab9afb478ca07989dc754fa543e03d5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-darwin",
|
||||
"ref": "nix-darwin-25.11",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1765311797,
|
||||
|
|
@ -158,6 +179,7 @@
|
|||
"inputs": {
|
||||
"apple-fonts": "apple-fonts",
|
||||
"lanzaboote": "lanzaboote",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
13
flake.nix
13
flake.nix
|
|
@ -1,9 +1,12 @@
|
|||
{
|
||||
description = "A SecureBoot-enabled NixOS configurations";
|
||||
description = "monologiq's systems";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
|
||||
|
||||
nix-darwin.url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
lanzaboote.url = "github:nix-community/lanzaboote/v1.0.0";
|
||||
lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
|
|
@ -34,7 +37,7 @@
|
|||
);
|
||||
in
|
||||
{
|
||||
nixosConfigurations.hermes = inputs.nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations."hermes" = inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
|
|
@ -43,6 +46,12 @@
|
|||
./users/pml.nix
|
||||
];
|
||||
};
|
||||
darwinConfigurations."mercure" = inputs.nix-darwin.lib.darwinSystem {
|
||||
modules = [
|
||||
{ system.configurationRevision = self.rev or self.dirtyRev or null; }
|
||||
./machines/mercure
|
||||
];
|
||||
};
|
||||
|
||||
overlays.default = import ./overlays;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,12 +39,10 @@
|
|||
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
|
||||
};
|
||||
|
||||
|
||||
# Enable required services for Wayland
|
||||
security.polkit.enable = true;
|
||||
programs.dconf.enable = true;
|
||||
|
||||
|
||||
# List packages installed in system profile.
|
||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
@ -186,6 +184,5 @@
|
|||
# Optional: Enable niri for user sessions
|
||||
programs.niri.enable = true;
|
||||
|
||||
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
|||
13
machines/mercure/default.nix
Normal file
13
machines/mercure/default.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ self, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.vim
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
system.stateVersion = 6;
|
||||
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue