init: initial setup
This commit is contained in:
commit
69a92fdd5e
10 changed files with 444 additions and 0 deletions
6
common/default.nix
Normal file
6
common/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./users.nix
|
||||
];
|
||||
}
|
||||
47
common/home.nix
Normal file
47
common/home.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
pkgs,
|
||||
filter,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.username = "strix";
|
||||
home.homeDirectory = "/home/strix";
|
||||
|
||||
home.packages = with pkgs; [
|
||||
ghostty
|
||||
thunderbird
|
||||
vscode
|
||||
steam
|
||||
bitwarden-desktop
|
||||
nixd
|
||||
treefmt
|
||||
tealdeer
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user.name = "strix";
|
||||
user.email = "strix@saluco.nl";
|
||||
init = { defaultBranch = "main"; };
|
||||
};
|
||||
};
|
||||
|
||||
dconf.settings = {
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
custom-keybindings = [
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||
name = "terminal";
|
||||
command = "ghostty";
|
||||
binding = "<Super>Return";
|
||||
};
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
home.stateVersion = "26.11";
|
||||
}
|
||||
26
common/users.nix
Normal file
26
common/users.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ home-manager, inputs, filter, ... }:
|
||||
{
|
||||
users.users."strix" = {
|
||||
isNormalUser = true;
|
||||
description = "Strix";
|
||||
initialPassword = "changeme";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"libvirtd"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMjsxlXIgj0sPuzjgfeqAfe1gTNAeFpAext2wbfjOLPE"
|
||||
];
|
||||
};
|
||||
|
||||
imports = [
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = { inherit inputs filter; };
|
||||
home-manager.users.strix = ./home.nix;
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue