mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{
|
|
description = "Flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/release-25.05";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = { nixpkgs, nixpkgs-unstable, home-manager, ... }: let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = { allowUnfree = true; };
|
|
};
|
|
pkgsUnstable = import nixpkgs-unstable { inherit system; };
|
|
in
|
|
{
|
|
nixosConfigurations.gloria = nixpkgs.lib.nixosSystem {
|
|
inherit system;
|
|
modules = [
|
|
(import ./configuration/configuration.nix { inherit pkgs pkgsUnstable; })
|
|
./configuration/sys/coreutils-configuration.nix
|
|
./hardware-configuration.nix
|
|
home-manager.nixosModules.home-manager {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
backupFileExtension = "home-backup";
|
|
users.coast = { ... }: {
|
|
imports = [
|
|
./home-configuration/configuration.nix
|
|
./home-configuration/apps/sway.nix
|
|
];
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|