This commit is contained in:
nora 2023-09-17 21:13:41 +02:00
parent bc6f9e293f
commit 6ab5c496f3
5 changed files with 114 additions and 141 deletions

View file

@ -38,16 +38,5 @@
]; ];
}; };
}; };
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#nils@nixos'
/*homeConfigurations = {
"nils@nixos" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main home-manager configuration file <
modules = [ ./home-manager/home.nix ];
};
};*/
}; };
} }

View file

@ -1,4 +1,5 @@
{ pkgs }: { { pkgs, ... }: {
programs.firefox = {
enable = true; enable = true;
profiles = { profiles = {
nils = { nils = {
@ -33,4 +34,5 @@
]; ];
}; };
}; };
};
} }

View file

@ -1,4 +1,5 @@
{ pkgs }: { { pkgs, ... }: {
programs.git = {
enable = true; enable = true;
userEmail = "48135649+Nilstrieb@users.noreply.github.com"; userEmail = "48135649+Nilstrieb@users.noreply.github.com";
@ -20,4 +21,5 @@
push.autoSetupRemote = true; push.autoSetupRemote = true;
init.defaultBranch = "main"; init.defaultBranch = "main";
}; };
};
} }

View file

@ -18,29 +18,11 @@ in
# You can also split up your configuration and import pieces of it here: # You can also split up your configuration and import pieces of it here:
# ./nvim.nix # ./nvim.nix
./git.nix
./firefox.nix
./vscode.nix
]; ];
/*nixpkgs = {
# You can add overlays here
overlays = [
# If you want to use overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
allowUnfree = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = (_: true);
};
};*/
home = { home = {
username = "nils"; username = "nils";
homeDirectory = "/home/nils"; homeDirectory = "/home/nils";
@ -80,10 +62,6 @@ in
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.git = import ./git.nix { inherit pkgs; };
programs.firefox = import ./firefox.nix { inherit pkgs; };
programs.vscode = import ./vscode.nix { inherit pkgs; };
programs.fish = { programs.fish = {
enable = true; enable = true;
interactiveShellInit = '' interactiveShellInit = ''

View file

@ -1,4 +1,5 @@
{ pkgs }: { { pkgs, ... }: {
programs.vscode = {
enable = true; enable = true;
package = pkgs.vscode; package = pkgs.vscode;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions; [
@ -52,4 +53,5 @@
''; '';
}) })
]; ];
};
} }