This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/flake.nix

109 lines
2.9 KiB
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{
description = "siempie's special";
# inputs
inputs = {
2024-06-04 17:04:19 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
2024-03-27 21:39:20 +01:00
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2024-03-24 16:15:15 +01:00
home-manager = {
2024-06-04 17:04:19 +02:00
url = "github:nix-community/home-manager/release-24.05";
2024-03-24 16:15:15 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
# outputs
outputs = { self, nixpkgs, nixpkgs-unstable,home-manager, ...} @ inputs: let
inherit (self) outputs;
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
unstableOverlay = final: prev: {
unstable = import nixpkgs-unstable {
system = "x86_64-linux";
config.allowUnfree = true;
};
};
2024-04-03 22:36:29 +02:00
lib = nixpkgs.lib; in {
2024-03-24 16:15:15 +01:00
nixosConfigurations = {
# laptop - itclt75
itclt75 = lib.nixosSystem {
2024-04-03 22:37:10 +02:00
specialArgs = { inherit inputs outputs; };
2024-03-24 16:15:15 +01:00
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
inherit system;
modules = [
({
nixpkgs = {
overlays = [ unstableOverlay ];
config.allowUnfree = true;
};
})
./nix/systems/itclt75/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.simon = {
imports = [
./nix/home
];
};
}
];
};
# laptop - talathiel
talathiel = lib.nixosSystem {
2024-04-03 22:37:10 +02:00
specialArgs = { inherit inputs outputs; };
2024-03-24 16:15:15 +01:00
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
inherit system;
modules = [
({
nixpkgs = {
overlays = [ unstableOverlay ];
config.allowUnfree = true;
};
})
./nix/systems/talathiel/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.simon = {
imports = [
./nix/home
];
};
}
];
};
# desktop - phaedra
phaedra = lib.nixosSystem {
2024-04-03 22:37:10 +02:00
specialArgs = { inherit inputs outputs; };
2024-03-24 16:15:15 +01:00
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
inherit system;
modules = [
({
nixpkgs = {
overlays = [ unstableOverlay ];
config.allowUnfree = true;
};
})
./nix/systems/phaedra/configuration.nix
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.simon = {
imports = [
./nix/home
];
};
}
];
};
};
};
}