moved all of my config into this nix flake

This commit is contained in:
Sebastian Moser
2023-10-28 19:10:37 +02:00
parent 9facde9d3a
commit 112ef46fd2
46 changed files with 3545 additions and 0 deletions

36
flake.nix Normal file
View File

@@ -0,0 +1,36 @@
{
description = "Sebastian (c2vi)'s NixOS";
inputs = {
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/release-23.05";
firefox.url = "github:nix-community/flake-firefox-nightly";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = let
confDir = "/home/me/work/config";
workDir = "/home/me/work";
secretsDir = "/home/me/.mysecrets";
persistentDir = "/home/me/work/app-data";
in
{ self, nixpkgs, ... }@inputs: {
nixosConfigurations = {
"c2vi-main" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = [ inputs confDir workDir ];
modules = [
./hosts/main.nix
];
};
};
};
}