Configure dev-lt-63

This commit is contained in:
Riley Apeldoorn 2023-05-23 09:58:47 +02:00
parent d0caa47c9d
commit 95a8ff974b
10 changed files with 84 additions and 2 deletions

View file

@ -49,14 +49,16 @@
# Configurations for non-NixOS machines. # Configurations for non-NixOS machines.
homeConfigurations = with home-manager.lib; { homeConfigurations = with home-manager.lib; {
"dev-lt-63" = homeManagerConfiguration { "dev-lt-63" = homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux"; pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [ modules = [
(mkUserConfig ./system/dev-lt-63) (mkUserConfig ./system/dev-lt-63)
]; ];
}; };
};
overlays = {
default = (import ./shared/overlay.nix);
}; };
}; };

View file

@ -6,6 +6,7 @@
./gui/pipewire.nix ./gui/pipewire.nix
./gui/sway.nix ./gui/sway.nix
./nix.nix ./nix.nix
./ssh.nix
]; ];
config = { config = {

17
shared/core/ssh.nix Normal file
View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
services.openssh = {
enable = true;
settings.passwordAuthentication = false;
};
users.users."riley" = {
packages = [ pkgs.openssh ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDroUHLf56zlYLiMoD1JV5XXZNwY9tftobDttC6hnfiM riley@dev-lt-63"
];
};
}

View file

@ -6,6 +6,7 @@
./bash.nix ./bash.nix
./git.nix ./git.nix
./nix.nix ./nix.nix
./mpd.nix
./programs.nix ./programs.nix
./theme.nix ./theme.nix
./gui ./gui

15
shared/home/mpd.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
{
services.mpd = {
enable = true;
};
programs.ncmpcpp = {
enable = true;
};
home.packages = with pkgs; [
mpc_cli
];
}

View file

@ -10,4 +10,8 @@
allowUnfree = true; allowUnfree = true;
}; };
nixpkgs.overlays = [
(import ../overlay.nix)
];
} }

View file

@ -31,4 +31,11 @@
programs.skim.enable = true; programs.skim.enable = true;
programs.zoxide.enable = true; programs.zoxide.enable = true;
programs.helix = {
enable = true;
settings = {
theme = "github_dark_dimmed";
};
};
} }

View file

@ -10,4 +10,8 @@ with pkgs; rec {
${nixGL}/bin/nixGL ${program}/bin/${program.pname} "$@" ${nixGL}/bin/nixGL ${program}/bin/${program.pname} "$@"
''; '';
webApp = name: url: writeShellScriptBin name ''
${chromium}/bin/chromium --app ${url}
'';
} }

9
shared/overlay.nix Normal file
View file

@ -0,0 +1,9 @@
final: prev:
with (import ./lib.nix final); {
element-web = webApp "element" "https://riot.badat.dev";
youtube-web = webApp "youtube" "https://youtube.com";
github-web = webApp "github" "https://github.com";
bitwarden-web = webApp "bitwarden" "https://vault.steph.tools";
hoogle-web = webApp "hoogle" "https://hoogle.haskell.org";
}

View file

@ -6,7 +6,29 @@
homeDirectory = "/home/riley"; homeDirectory = "/home/riley";
stateVersion = "22.05"; stateVersion = "22.05";
}; };
programs = { programs = {
home-manager.enable = false; home-manager.enable = false;
}; };
xdg.systemDirs.data = [ "/usr/share" "/usr/local/share" ];
fonts.fontconfig.enable = true;
services.dunst = {
enable = true;
settings = {
global = {
font = "Fira Code 9";
origin = "top-center";
offset = "10x10";
frame_width = "2";
frame_color = "#ffffff";
width = "400";
};
urgency_normal.background = "#212121";
};
};
programs.man.enable = false;
} }