Clean stuff up
This commit is contained in:
parent
0015dffed4
commit
6113dd66a9
@ -2,6 +2,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.self.nixosProfiles.desktop
|
inputs.self.nixosProfiles.desktop
|
||||||
|
inputs.self.nixosModules.print-scan
|
||||||
];
|
];
|
||||||
deviceSpecific.devInfo = {
|
deviceSpecific.devInfo = {
|
||||||
cpu = {
|
cpu = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ modulesPath, lib, inputs, ... }: {
|
{ modulesPath, lib, inputs, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
"${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix"
|
||||||
inputs.self.nixosProfiles.base
|
inputs.self.nixosProfiles.base
|
||||||
@ -6,5 +6,7 @@
|
|||||||
networking.wireless.enable = lib.mkForce false;
|
networking.wireless.enable = lib.mkForce false;
|
||||||
services.openssh.permitRootLogin = lib.mkForce "no";
|
services.openssh.permitRootLogin = lib.mkForce "no";
|
||||||
services.getty.autologinUser = lib.mkForce "balsoft";
|
services.getty.autologinUser = lib.mkForce "balsoft";
|
||||||
|
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
|
||||||
|
boot.supportedFilesystems = lib.mkForce [ "ext4" "vfat" ];
|
||||||
disabledModules = [ "installer/cd-dvd/channel.nix" ];
|
disabledModules = [ "installer/cd-dvd/channel.nix" ];
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
cmd = "${pkgs.gnome3.nautilus}/bin/nautilus";
|
cmd = "${pkgs.gnome3.nautilus}/bin/nautilus";
|
||||||
desktop = "org.gnome.Nautilus";
|
desktop = "org.gnome.Nautilus";
|
||||||
};
|
};
|
||||||
|
matrix = {
|
||||||
|
cmd = "${pkgs.nheko}/bin/nheko";
|
||||||
|
desktop = "nheko";
|
||||||
|
};
|
||||||
monitor = {
|
monitor = {
|
||||||
cmd = "${pkgs.gnome3.gnome-system-monitor}/bin/gnome-system-monitor";
|
cmd = "${pkgs.gnome3.gnome-system-monitor}/bin/gnome-system-monitor";
|
||||||
desktop = "gnome-system-monitor";
|
desktop = "gnome-system-monitor";
|
||||||
@ -66,6 +70,7 @@
|
|||||||
"x-scheme-handler/about" = browser;
|
"x-scheme-handler/about" = browser;
|
||||||
"x-scheme-handler/unknown" = browser;
|
"x-scheme-handler/unknown" = browser;
|
||||||
"x-scheme-handler/mailto" = mail;
|
"x-scheme-handler/mailto" = mail;
|
||||||
|
"x-scheme-handler/matrix" = matrix;
|
||||||
"application/pdf" = { desktop = "org.kde.okular"; };
|
"application/pdf" = { desktop = "org.kde.okular"; };
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
|
||||||
text_processor;
|
text_processor;
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
pass-wayland
|
pass-wayland
|
||||||
gopass
|
gopass
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
gnome3.simple-scan
|
|
||||||
shellcheck
|
shellcheck
|
||||||
proselint
|
proselint
|
||||||
];
|
];
|
||||||
|
@ -35,7 +35,6 @@ builtins.listToAttrs (builtins.map (path: {
|
|||||||
./servers/nextcloud.nix
|
./servers/nextcloud.nix
|
||||||
./servers/nginx.nix
|
./servers/nginx.nix
|
||||||
./servers/vsftpd.nix
|
./servers/vsftpd.nix
|
||||||
./services.nix
|
|
||||||
./themes.nix
|
./themes.nix
|
||||||
./virtualisation.nix
|
./virtualisation.nix
|
||||||
./workspace/cursor.nix
|
./workspace/cursor.nix
|
||||||
@ -50,6 +49,7 @@ builtins.listToAttrs (builtins.map (path: {
|
|||||||
./workspace/locale.nix
|
./workspace/locale.nix
|
||||||
./workspace/mako.nix
|
./workspace/mako.nix
|
||||||
./workspace/misc.nix
|
./workspace/misc.nix
|
||||||
|
./workspace/print-scan.nix
|
||||||
./workspace/simple-osd-daemons.nix
|
./workspace/simple-osd-daemons.nix
|
||||||
./workspace/ssh.nix
|
./workspace/ssh.nix
|
||||||
./workspace/sway
|
./workspace/sway
|
||||||
|
@ -12,9 +12,13 @@ with deviceSpecific; {
|
|||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.package = pkgs.bluezFull;
|
hardware.bluetooth.package = pkgs.bluezFull;
|
||||||
|
|
||||||
hardware.sane.enable = true;
|
|
||||||
|
|
||||||
services.saned.enable = true;
|
systemd.services.systemd-udev-settle.enable = false;
|
||||||
|
|
||||||
|
services.upower = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
services.logind.lidSwitchExternalPower = "ignore";
|
services.logind.lidSwitchExternalPower = "ignore";
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
|
|
||||||
{ config, lib, pkgs, inputs, ... }: {
|
|
||||||
|
|
||||||
services.acpid.enable = true;
|
|
||||||
|
|
||||||
services.earlyoom = {
|
|
||||||
enable = config.deviceSpecific.devInfo.ram < 16;
|
|
||||||
freeMemThreshold = 5;
|
|
||||||
freeSwapThreshold = 100;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.printing = {
|
|
||||||
enable = true;
|
|
||||||
drivers = [ pkgs.gutenprint ];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.mosh.enable = true;
|
|
||||||
|
|
||||||
services.fwupd.enable = true;
|
|
||||||
|
|
||||||
services.avahi.enable = true;
|
|
||||||
|
|
||||||
systemd.services.systemd-udev-settle.enable = false;
|
|
||||||
|
|
||||||
services.pcscd.enable = true;
|
|
||||||
|
|
||||||
services.blueman.enable = true;
|
|
||||||
|
|
||||||
services.upower = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,13 +1,21 @@
|
|||||||
{ pkgs, config, ... }: {
|
{ pkgs, config, ... }: {
|
||||||
|
services.pcscd.enable = true;
|
||||||
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||||
|
|
||||||
home-manager.users.balsoft = {
|
home-manager.users.balsoft = {
|
||||||
services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
pinentryFlavor = "gtk2";
|
pinentryFlavor = "gtk2";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gpg = {
|
programs.gpg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg";
|
homedir = "${config.home-manager.users.balsoft.xdg.dataHome}/gnupg";
|
||||||
|
scdaemonSettings = {
|
||||||
|
disable-ccid = true;
|
||||||
|
reader-port = "Yubico Yubi";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -25,10 +25,11 @@
|
|||||||
|
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
programs.direnv.enableNixDirenvIntegration = true;
|
programs.direnv.enableNixDirenvIntegration = true;
|
||||||
|
|
||||||
|
home.stateVersion = "20.09";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.avahi.enable = true;
|
||||||
home-manager.users.balsoft.home.stateVersion = "20.09";
|
|
||||||
|
|
||||||
system.stateVersion = "18.03";
|
system.stateVersion = "18.03";
|
||||||
|
|
||||||
|
12
modules/workspace/print-scan.nix
Normal file
12
modules/workspace/print-scan.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = [ pkgs.gutenprint ];
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.sane.enable = true;
|
||||||
|
services.saned.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.gnome3.simple-scan ];
|
||||||
|
}
|
@ -11,12 +11,8 @@
|
|||||||
users.users.balsoft.openssh.authorizedKeys.keys =
|
users.users.balsoft.openssh.authorizedKeys.keys =
|
||||||
["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"];
|
["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDd2OdcSHUsgezuV+cpFqk9+Svtup6PxIolv1zokVZdqvS8qxLsA/rwYmQgTnuq4/zK/GIxcUCH4OxYlW6Or4M4G7qrDKcLAUrRPWkectqEooWRflZXkfHduMJhzeOAsBdMfYZQ9024GwKr/4yriw2BGa8GbbAnQxiSeTipzvXHoXuRME+/2GsMFAfHFvxzXRG7dNOiLtLaXEjUPUTcw/fffKy55kHtWxMkEvvcdyR53/24fmO3kLVpEuoI+Mp1XFtX3DvRM9ulgfwZUn8/CLhwSLwWX4Xf9iuzVi5vJOJtMOktQj/MwGk4tY/NPe+sIk+nAUKSdVf0y9k9JrJT98S/ comment"];
|
||||||
|
|
||||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
||||||
|
|
||||||
# home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
# home-manager.users.balsoft.home.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh";
|
||||||
|
|
||||||
home-manager.users.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi";
|
|
||||||
|
|
||||||
home-manager.users.balsoft.programs.ssh = {
|
home-manager.users.balsoft.programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
ezwg
|
ezwg
|
||||||
hardware
|
hardware
|
||||||
power
|
power
|
||||||
services
|
|
||||||
themes
|
themes
|
||||||
virtualisation
|
virtualisation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user