nixos-config/flake.nix

60 lines
2 KiB
Nix
Raw Normal View History

2022-12-18 17:01:34 +01:00
{
2022-12-19 15:45:59 +01:00
description = "My nix setup";
2022-12-18 17:01:34 +01:00
inputs = {
2023-01-18 23:10:09 +01:00
nixpkgs.url = github:nixos/nixpkgs/nixos-unstable;
2022-12-18 17:01:34 +01:00
home-manager.url = github:nix-community/home-manager;
2023-01-20 10:46:28 +01:00
hyprland.url = github:hyprwm/Hyprland;
2023-01-22 14:09:16 +01:00
sops-nix.url = github:Mic92/sops-nix;
nix-colors.url = github:Misterio77/nix-colors;
2023-01-20 14:37:59 +01:00
hyprpaper.url = github:hyprwm/hyprpaper;
2023-02-21 22:35:56 +01:00
nixos-hardware.url = github:nixos/nixos-hardware;
2023-02-23 15:18:55 +01:00
nixvim.url = github:pta2002/nixvim;
2023-01-22 14:09:16 +01:00
home-manager.inputs.nixpkgs.follows = "nixpkgs";
hyprland.inputs.nixpkgs.follows = "nixpkgs";
2023-01-20 14:37:59 +01:00
hyprpaper.inputs.nixpkgs.follows = "nixpkgs";
2022-12-27 18:21:33 +01:00
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
2023-02-23 15:18:55 +01:00
nixvim.inputs.nixpkgs.follows = "nixpkgs";
2022-12-18 17:01:34 +01:00
};
2023-02-23 15:18:55 +01:00
outputs = { self, nixpkgs, home-manager, hyprland, hyprpaper, sops-nix, nix-colors, nixos-hardware, nixvim }@attrs: {
2023-01-10 11:31:33 +01:00
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
2022-12-18 17:01:34 +01:00
nixosConfigurations = {
thinkpad = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2023-01-20 14:37:59 +01:00
specialArgs.inputs = attrs;
2022-12-18 17:01:34 +01:00
modules = [
2022-12-19 20:07:28 +01:00
./hosts/thinkpad
./users/rouven
2023-02-21 22:49:31 +01:00
nixos-hardware.nixosModules.common-pc-laptop-ssd
2022-12-18 17:07:40 +01:00
home-manager.nixosModules.home-manager
sops-nix.nixosModules.sops
2023-01-04 16:15:56 +01:00
{
2023-01-20 14:37:59 +01:00
home-manager.extraSpecialArgs = attrs;
2023-01-04 16:15:56 +01:00
home-manager.users.rouven = {
2023-01-09 13:00:09 +01:00
imports = [
2023-02-26 01:02:01 +01:00
nix-colors.homeManagerModules.default
2023-01-20 10:46:28 +01:00
hyprland.homeManagerModules.default
2023-02-23 15:18:55 +01:00
nixvim.homeManagerModules.nixvim
2023-02-26 01:02:01 +01:00
sops-nix.homeManagerModules.sops
2023-01-09 13:00:09 +01:00
];
2023-01-25 12:09:50 +01:00
config = {
colorScheme = nix-colors.colorSchemes.dracula;
};
2023-01-04 16:15:56 +01:00
};
}
2022-12-18 17:01:34 +01:00
];
};
2023-01-23 17:30:09 +01:00
nuc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = attrs;
modules = [
2023-02-21 22:35:56 +01:00
nixos-hardware.nixosModules.intel-nuc-8i7beh
2023-01-23 17:30:09 +01:00
./hosts/nuc
sops-nix.nixosModules.sops
];
};
2022-12-18 17:01:34 +01:00
};
};
}