Switch to lix

This commit is contained in:
monologiq 2025-12-23 17:20:55 +01:00
parent 764a05c73c
commit d0c6f19a09
22 changed files with 544 additions and 632 deletions

View file

@ -1,116 +1,13 @@
{
inputs,
lib,
pkgs,
...
}:
{ self, pkgs, ... }:
{
imports = [
./bootloader.nix
./filesystems.nix
./gpu.nix
./cpu.nix
./audio.nix
./bluetooth.nix
./networking.nix
./hardware.nix
./fonts.nix
environment.systemPackages = [
pkgs.vim
];
boot.kernelPackages = pkgs.linuxPackages_6_17;
nix.settings.experimental-features = "nix-command flakes";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = 6;
time.timeZone = "Europe/Paris";
console = {
keyMap = "us";
font = "${pkgs.terminus_font}/share/consolefonts/ter-v28b.psf.gz";
};
i18n.defaultLocale = "en_US.UTF-8";
nixpkgs.config.allowUnfree = true;
nix.settings = {
experimental-features = [
"nix-command"
"flakes"
];
substituters = [ "https://cache.nixos-cuda.org" ];
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; [
wget
firefox
adwaita-icon-theme
gsettings-desktop-schemas
];
programs._1password.enable = true;
programs._1password-gui = {
enable = true;
# Certain features, including CLI integration and system authentication support,
# require enabling PolKit integration on some desktop environments (e.g. Plasma).
polkitPolicyOwners = [ "pml" ];
};
environment.etc = {
"1password/custom_allowed_browsers" = {
text = ''
firefox
'';
mode = "0755";
};
};
# Enable greetd
# services.greetd = {
# enable = true;
# settings = {
# default_session = {
# command = "${pkgs.niri}/bin/niri --config /etc/greetd/niri.kdl";
# user = "greeter";
# };
# };
# }
# Enable regreet
programs.regreet = {
enable = true;
font.name = "SF Pro";
font.size = 16;
font.package = inputs.apple-fonts.packages."${pkgs.stdenv.hostPlatform.system}".sf-pro;
settings = {
GTK = {
font_name = lib.mkForce "SF Pro 16";
};
};
};
# Create the niri config for greetd
# environment.etc."greetd/niri.kdl".text = ''
# spawn-sh-at-startup "regreet; niri msg action quit --skip-confirmation"
#
# hotkey-overlay {
# skip-at-startup
# }
#
# cursor {
# xcursor-theme "Adwaita"
# xcursor-size 24
# }
# '';
# Optional: Enable niri for user sessions
programs.niri.enable = true;
environment.sessionVariables.NIXOS_OZONE_WL = "1";
system.stateVersion = "25.05"; # Did you read the comment?
nixpkgs.hostPlatform = "aarch64-darwin";
}