2022-04-27 01:36:16 +00:00
|
|
|
{
|
|
|
|
description = "My system";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, home-manager }:
|
|
|
|
let
|
|
|
|
# Set the system type globally (changeme)
|
|
|
|
system = "x86_64-linux";
|
|
|
|
|
|
|
|
# Gather the Nix packages
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
|
2022-04-27 13:23:26 +00:00
|
|
|
user = "noah";
|
2022-04-27 01:36:16 +00:00
|
|
|
in {
|
|
|
|
nixosConfigurations = {
|
2022-04-27 13:23:26 +00:00
|
|
|
desktop = nixpkgs.lib.nixosSystem {
|
2022-04-27 01:36:16 +00:00
|
|
|
inherit system;
|
2022-04-29 00:46:00 +00:00
|
|
|
specialArgs = { inherit user; };
|
2022-04-27 01:36:16 +00:00
|
|
|
modules = [
|
|
|
|
./nixos/configuration.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
{
|
2022-04-28 22:55:15 +00:00
|
|
|
home-manager = {
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
useUserPackages = true;
|
2022-04-29 00:46:00 +00:00
|
|
|
extraSpecialArgs = { inherit user; };
|
2022-04-28 22:55:15 +00:00
|
|
|
users.${user} = {
|
|
|
|
imports = [
|
|
|
|
./nixos/home.nix
|
|
|
|
./modules/applications/firefox.nix
|
2022-04-29 00:46:00 +00:00
|
|
|
./modules/applications/alacritty.nix
|
2022-04-28 22:55:15 +00:00
|
|
|
./modules/shell/fish.nix
|
2022-04-28 23:20:46 +00:00
|
|
|
./modules/shell/utilities.nix
|
|
|
|
./modules/shell/git.nix
|
|
|
|
./modules/shell/github.nix
|
2022-04-28 23:11:33 +00:00
|
|
|
./modules/editor/neovim.nix
|
2022-04-28 22:55:15 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-04-27 01:36:16 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-04-27 13:23:26 +00:00
|
|
|
|
|
|
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [ stylua nixfmt shfmt shellcheck ];
|
|
|
|
};
|
|
|
|
|
2022-04-27 01:36:16 +00:00
|
|
|
};
|
|
|
|
}
|