Initial configuration

This commit is contained in:
2024-05-28 18:01:06 -05:00
commit fa663e4098
18 changed files with 1040 additions and 0 deletions

40
flake.nix Normal file
View File

@@ -0,0 +1,40 @@
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ self, nixpkgs, home-manager, ... }: let
inherit (self) outputs;
in {
nixosConfigurations = {
alpheratz = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs outputs;};
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.eesim = import ./home.nix;
}
];
};
};
packages = nixpkgs.lib.genAttrs [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
in
{
pkgs = pkgs // removeAttrs self.packages.${system} [ "pkgs" ];
kickoff-dot-desktop = pkgs.callPackage ./pkgs/kickoff-dot-desktop.nix { };
}
);
};
}