- Added `flake.lock` to pin dependencies (nixpkgs, home-manager, nixvim, flake-utils, etc.) - Cleaned up `.gitignore`: stop ignoring `*.lock` - Removed unused `flake-utils.inputs.nixpkgs.follows` - Nixstation host: - Removed `keychron.nix`, Wacom tablet config, and redundant session variables - Simplified GDM/GNOME configuration and XKB layout - Commented out virtualisation setup - Common NVIDIA host config: - Added explicit kernel modules, parameters, blacklists, and kernel version - Ensured GNOME + GDM configuration present - Updated NVIDIA driver settings and CUDA support
71 lines
1.6 KiB
Nix
71 lines
1.6 KiB
Nix
{
|
|
description = "my NixOS Config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
url = "github:nix-community/home-manager/master";
|
|
};
|
|
nixvim = {
|
|
url = "github:nix-community/nixvim";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, nixpkgs
|
|
, home-manager
|
|
, ...
|
|
}@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
Nixbook = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
allowUnfree = true;
|
|
};
|
|
modules = [
|
|
./hosts/Nixbook
|
|
];
|
|
};
|
|
Nixstation = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {
|
|
inherit inputs outputs;
|
|
allowUnfree = true;};
|
|
modules = [
|
|
./hosts/Nixstation
|
|
];
|
|
};
|
|
};
|
|
|
|
homeConfigurations = {
|
|
"thiago@Nixbook" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
modules = [
|
|
./home-manager/home.nix
|
|
{ custom.sessionType = "wayland"; }
|
|
];
|
|
};
|
|
"thiago@Nixstation" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
extraSpecialArgs = {
|
|
inherit inputs outputs;
|
|
};
|
|
|
|
modules = [
|
|
./home-manager/home.nix
|
|
{ custom.sessionType = "wayland"; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|