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.
homeConfigurations = with home-manager.lib; {
"dev-lt-63" = homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
modules = [
(mkUserConfig ./system/dev-lt-63)
];
};
};
overlays = {
default = (import ./shared/overlay.nix);
};
};

View File

@ -6,6 +6,7 @@
./gui/pipewire.nix
./gui/sway.nix
./nix.nix
./ssh.nix
];
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
./git.nix
./nix.nix
./mpd.nix
./programs.nix
./theme.nix
./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;
};
nixpkgs.overlays = [
(import ../overlay.nix)
];
}

View File

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

View File

@ -9,5 +9,9 @@ with pkgs; rec {
nixGLWrapper = program: writeShellScriptBin 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";
stateVersion = "22.05";
};
programs = {
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;
}