nixos-config/flake.nix

87 lines
2.7 KiB
Nix
Raw Normal View History

2022-06-10 00:22:53 -03:00
{
description = "My system config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-22.05";
2022-07-16 02:12:18 -03:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2022-06-10 00:22:53 -03:00
home-manager.url = "github:nix-community/home-manager/release-22.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2022-07-21 00:32:09 -03:00
nur.url = "github:nix-community/NUR";
2022-08-05 11:20:13 -03:00
2022-10-24 08:02:22 -03:00
# mpvpaper
wegank = {
url = "github:wegank/nur-packages";
inputs.nixpkgs.follows = "nixpkgs";
};
2022-08-20 17:46:03 -03:00
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
alacritty-sixel.url = "github:ayosec/alacritty";
alacritty-sixel.flake = false;
2022-08-06 20:16:17 -03:00
ranger-sixel.url = "github:remi6397/ranger/feature/sixel";
ranger-sixel.flake = false;
2022-08-06 20:36:14 -03:00
2022-10-24 23:04:34 -03:00
ranger-icons.url = "github:alexanderjeurissen/ranger_devicons";
ranger-icons.flake = false;
2022-08-11 11:53:39 -03:00
material-wifi-icons.url = "github:dcousens/material-wifi-icons";
material-wifi-icons.flake = false;
2022-08-01 20:15:26 -03:00
# my stuff
dhist.url = "github:lelgenio/dhist";
2022-06-10 00:22:53 -03:00
};
2022-08-20 17:46:03 -03:00
outputs = inputs@{ nixpkgs, nixpkgs-unstable, home-manager, nur, ... }:
2022-06-10 00:22:53 -03:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = { allowUnfree = true; };
};
lib = nixpkgs.lib;
2022-07-16 02:12:18 -03:00
common_modules = [
./system/configuration.nix
2022-10-18 21:45:20 -03:00
./system/sway.nix
2022-10-06 12:49:48 -03:00
./system/gitlab-runner.nix
2022-07-16 02:12:18 -03:00
# nur.nixosModules.nur
2022-08-20 17:46:03 -03:00
inputs.hyprland.nixosModules.default
{
programs.hyprland.enable = true;
# programs.hyprland.package = null;
}
2022-10-18 21:45:20 -03:00
(import ./overlays (inputs // {inherit system;}))
2022-07-16 02:12:18 -03:00
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.lelgenio = import ./user/home.nix;
home-manager.backupFileExtension = "bkp";
2022-07-16 02:12:18 -03:00
# Optionally, use home-manager.extraSpecialArgs to pass
# arguments to home.nix
2022-08-23 23:42:36 -03:00
home-manager.extraSpecialArgs = { inherit inputs; };
2022-07-16 02:12:18 -03:00
}
];
2022-06-10 00:22:53 -03:00
in {
nixosConfigurations = {
i15 = lib.nixosSystem {
inherit system;
2022-08-07 23:58:05 -03:00
modules = [ ./hosts/i15.nix ] ++ common_modules;
2022-07-16 02:12:18 -03:00
};
2022-07-11 21:34:04 -03:00
monolith = lib.nixosSystem {
inherit system;
2022-08-07 23:58:05 -03:00
modules = [ ./hosts/monolith.nix ] ++ common_modules;
2022-06-10 00:22:53 -03:00
};
2022-10-22 00:03:28 -03:00
pixie = lib.nixosSystem {
inherit system;
2022-10-24 20:18:24 -03:00
modules = [ ./hosts/pixie.nix ] ++ common_modules ++ [{
packages.media-packages.enable = lib.mkOverride 0 false;
programs.steam.enable = lib.mkOverride 0 false;
services.flatpak.enable = lib.mkOverride 0 false;
}];
2022-10-22 00:03:28 -03:00
};
2022-06-10 00:22:53 -03:00
};
};
2022-07-21 00:32:09 -03:00
}