mecure: Initial config

This commit is contained in:
Paul-Mathias Logue 2025-12-14 21:43:02 +01:00
parent 5517dffa21
commit 87c74f1079
4 changed files with 49 additions and 8 deletions

22
flake.lock generated
View file

@ -105,6 +105,27 @@
"type": "github" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1765311797, "lastModified": 1765311797,
@ -158,6 +179,7 @@
"inputs": { "inputs": {
"apple-fonts": "apple-fonts", "apple-fonts": "apple-fonts",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nix-darwin": "nix-darwin",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
} }
}, },

View file

@ -1,9 +1,12 @@
{ {
description = "A SecureBoot-enabled NixOS configurations"; description = "monologiq's systems";
inputs = { inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*"; 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.url = "github:nix-community/lanzaboote/v1.0.0";
lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs";
@ -34,7 +37,7 @@
); );
in in
{ {
nixosConfigurations.hermes = inputs.nixpkgs.lib.nixosSystem { nixosConfigurations."hermes" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
@ -43,6 +46,12 @@
./users/pml.nix ./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; overlays.default = import ./overlays;

View file

@ -18,7 +18,7 @@
]; ];
boot.kernelPackages = pkgs.linuxPackages_6_17; boot.kernelPackages = pkgs.linuxPackages_6_17;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";
@ -39,11 +39,9 @@
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ]; trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
}; };
# Enable required services for Wayland # Enable required services for Wayland
security.polkit.enable = true; security.polkit.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
# List packages installed in system profile. # List packages installed in system profile.
# You can use https://search.nixos.org/ to find more packages (and options). # You can use https://search.nixos.org/ to find more packages (and options).
@ -172,11 +170,11 @@
# Create the niri config for greetd # Create the niri config for greetd
# environment.etc."greetd/niri.kdl".text = '' # environment.etc."greetd/niri.kdl".text = ''
# spawn-sh-at-startup "regreet; niri msg action quit --skip-confirmation" # spawn-sh-at-startup "regreet; niri msg action quit --skip-confirmation"
# #
# hotkey-overlay { # hotkey-overlay {
# skip-at-startup # skip-at-startup
# } # }
# #
# cursor { # cursor {
# xcursor-theme "Adwaita" # xcursor-theme "Adwaita"
# xcursor-size 24 # xcursor-size 24
@ -186,6 +184,5 @@
# Optional: Enable niri for user sessions # Optional: Enable niri for user sessions
programs.niri.enable = true; programs.niri.enable = true;
system.stateVersion = "25.05"; # Did you read the comment? system.stateVersion = "25.05"; # Did you read the comment?
} }

View 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";
}