Initial nixos config

This commit is contained in:
Aleksandr Lebedev 2024-11-07 12:35:29 +01:00
commit ebe17adca7
17 changed files with 2044 additions and 0 deletions

48
flake.nix Normal file
View file

@ -0,0 +1,48 @@
{
description = "NixOS config";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
hyprland.url = "github:hyprwm/Hyprland";
stylix.url = "github:danth/stylix";
nix-flatpak.url = "github:GermanBread/declarative-flatpak/stable-v3";
#nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, stylix, nix-flatpak, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
};
};
in
{
nixosConfigurations = {
homepc = nixpkgs.lib.nixosSystem {
specialArgs = { inherit system; inherit inputs; };
modules = [
#nur.nixosModules.nur
./nixos/configuration.nix
inputs.home-manager.nixosModules.default
stylix.nixosModules.stylix
nix-flatpak.nixosModules.default
];
};
};
};
}