mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-15 13:23:11 +01:00
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{
|
|
description = "My nix setup";
|
|
inputs = {
|
|
nixpkgs.url = github:nixos/nixpkgs/nixos-22.11;
|
|
home-manager.url = github:nix-community/home-manager;
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
sops-nix.url = github:Mic92/sops-nix;
|
|
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
awesome-config.url = github:therealr5/awesome-config;
|
|
nix-colors.url = github:Misterio77/nix-colors;
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, sops-nix, awesome-config, nix-colors }: {
|
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;
|
|
nixosConfigurations = {
|
|
thinkpad = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/thinkpad
|
|
./users/rouven
|
|
home-manager.nixosModules.home-manager
|
|
sops-nix.nixosModules.sops
|
|
{
|
|
home-manager.users.rouven = {
|
|
imports = [
|
|
awesome-config.nixosModules.awesome
|
|
nix-colors.homeManagerModule
|
|
];
|
|
config.colorScheme = nix-colors.colorSchemes.dracula;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|