initial commit

This commit is contained in:
2024-10-16 19:11:15 +02:00
commit 6da0038f5d
39 changed files with 5141 additions and 0 deletions

79
flake.nix Normal file
View File

@ -0,0 +1,79 @@
{
description = "Nixos and home-manager config flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
pkgs = nixpkgs.legacyPackages."x86_64-linux";
username="tom";
homeDir="/home/tom";
in {
#NIXOS CONFIG
nixosConfigurations = {
default = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hardware-configuration.nix
./configuration.nix
];
};
vbox = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hardware-configuration.nix
./configuration.nix
./hosts/vbox/configuration.nix
];
};
laptop = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [
./hardware-configuration.nix
./configuration.nix
./hosts/laptop/configuration.nix
];
};
};
#HOME CONFIG
homeConfigurations = {
${username} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
username = "${username}";
homeDir = "${homeDir}";
};
modules = [ ./home.nix ];
};
vbox = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
username = "${username}";
homeDir = "${homeDir}";
};
modules = [
./home.nix
./homes/vbox.nix
];
};
ft = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
username = "tomoron";
homeDir = "/nfs/homes/tomoron";
};
modules = [
./home.nix
./homes/ft/ft.nix
];
};
};
};
}