Initial commit of NixOS config

This commit is contained in:
2025-08-07 14:04:06 +02:00
commit 3255b199db
24 changed files with 996 additions and 0 deletions

49
flake.nix Normal file
View File

@ -0,0 +1,49 @@
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
#zen-browser.url = "github:MarceColl/zen-browser-flake";
zen-browser.url = "github:youwen5/zen-browser-flake";
zen-browser.inputs.nixpkgs.follows = "nixpkgs";
grub2-themes = { url = "github:vinceliuice/grub2-themes"; };
};
outputs = inputs@{ nixpkgs, home-manager, zen-browser, grub2-themes, ... }:
let
username = "cookiez";
version = "25.05";
in
{
nixosConfigurations = {
#Replace the below with your hostname!!! Like: {hostname} = nixpkgs.lib.nixosSystem {
nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs username version;
};
modules = [
./configuration.nix
./firefox.nix
./zsh.nix
./autostart.nix
#./virtual-machine.nix
#./zen.nix
#./neovim.nix
./packages.nix
./lockscreen.nix
grub2-themes.nixosModules.default
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = ./home.nix;
home-manager.extraSpecialArgs = { inherit inputs username version; system = "x86_64-linux"; };
}
];
};
};
};
}