mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
r
This commit is contained in:
parent
6a06793716
commit
3dd31d28f7
4 changed files with 14 additions and 24 deletions
7
src/system/machines/workstation/default.nix
Normal file
7
src/system/machines/workstation/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./home.nix
|
||||
];
|
||||
}
|
||||
50
src/system/machines/workstation/home.nix
Normal file
50
src/system/machines/workstation/home.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../../../user ];
|
||||
|
||||
home = {
|
||||
stateVersion = "23.11";
|
||||
username = "${config.user.name}";
|
||||
homeDirectory = "/home/${config.user.name}";
|
||||
|
||||
file.".config/home-manager" = {
|
||||
source = ../../../..;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
programs.bash.shellAliases = {
|
||||
#nixup = "home-manager switch --flake";
|
||||
};
|
||||
|
||||
nix = {
|
||||
package = pkgs.nixFlakes;
|
||||
extraOptions = "experimental-features = nix-command flakes";
|
||||
settings = {
|
||||
auto-optimise-store = true;
|
||||
trusted-users = [ "${config.user.name}" ];
|
||||
};
|
||||
};
|
||||
modules = {
|
||||
user = {
|
||||
bash.enable = true;
|
||||
git.enable = true;
|
||||
gpg.enable = true;
|
||||
security.enable = false;
|
||||
gui = {
|
||||
alacritty.enable = true;
|
||||
browsers.enable = true;
|
||||
neovim.enable = true;
|
||||
};
|
||||
utils = {
|
||||
enable = true;
|
||||
dev.enable = true;
|
||||
email.enable = true;
|
||||
irc.enable = true;
|
||||
vim.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue