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

59 lines
1.3 KiB
Nix
Raw Normal View History

2022-08-07 15:46:46 +01:00
{
description = "My personal dotfiles";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
2022-08-07 19:14:22 +01:00
2022-08-07 15:46:46 +01:00
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-08-07 19:14:22 +01:00
nur.url = "github:nix-community/NUR";
2022-08-07 15:46:46 +01:00
};
2022-08-07 19:14:22 +01:00
outputs = inputs@{ self, nixpkgs, home-manager, nur, ... }:
2022-08-07 15:46:46 +01:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
2022-08-07 19:14:22 +01:00
inherit system;
2022-08-07 15:46:46 +01:00
config = { allowUnfree = true; };
2022-08-07 19:14:22 +01:00
overlays = [ self.overlays.default ];
2022-08-07 15:46:46 +01:00
};
2022-08-07 19:14:22 +01:00
2022-08-07 15:46:46 +01:00
lib = nixpkgs.lib;
in
{
2022-08-07 19:14:22 +01:00
overlays.default =
(final: prev: rec {
nerdfonts = prev.nerdfonts.override {
fonts = [
"JetBrainsMono"
];
};
});
nixosConfigurations.terra = lib.nixosSystem
{
inherit system;
specialArgs = inputs;
modules = [
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager =
{
useGlobalPkgs = true;
useUserPackages = true;
users.manuel = import ./user/home.nix;
extraSpecialArgs = { inherit pkgs; };
};
}
nur.nixosModules.nur
];
};
2022-08-07 15:46:46 +01:00
};
}
2022-08-07 19:14:22 +01:00