Skip to content

Commit

Permalink
nix flake update
Browse files Browse the repository at this point in the history
  • Loading branch information
ksevelyar committed May 9, 2024
1 parent 847d9bc commit d46914c
Show file tree
Hide file tree
Showing 22 changed files with 79 additions and 167 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions flake.nix
Expand Up @@ -64,17 +64,17 @@
};
};
in
{
nixosConfigurations = builtins.listToAttrs (
pkgs.lib.flatten (
map
(
host: [
(build-target host)
]
)
hosts ++ [ live-usb live-usb-min ]
)
);
};
{
nixosConfigurations = builtins.listToAttrs (
pkgs.lib.flatten (
map
(
host: [
(build-target host)
]
)
hosts ++ [ live-usb live-usb-min ]
)
);
};
}
2 changes: 1 addition & 1 deletion hardware/ssd.nix
@@ -1,3 +1,3 @@
{
services.fstrim.enable = true;
services.fstrim.enable = true;
}
8 changes: 4 additions & 4 deletions hosts/catch-22.nix
Expand Up @@ -76,10 +76,10 @@ args@{ config, lib, pkgs, ... }:
ips = [ "192.168.42.10" ];
privateKeyFile = "/home/kh/wireguard-keys/private";
peers = [{
publicKey = "dguI+imiz4FYOoxt9D/eN4Chj8wWSNlEjxKuiO9ZaAI=";
allowedIPs = [ "192.168.42.0/24" ];
endpoint = "95.165.99.133:51821";
persistentKeepalive = 25;
publicKey = "dguI+imiz4FYOoxt9D/eN4Chj8wWSNlEjxKuiO9ZaAI=";
allowedIPs = [ "192.168.42.0/24" ];
endpoint = "95.165.99.133:51821";
persistentKeepalive = 25;
}];
};
};
Expand Down
6 changes: 6 additions & 0 deletions hosts/hk47.nix
Expand Up @@ -131,4 +131,10 @@ args@{ config, lib, pkgs, ... }:
fsType = "ext4";
options = [ "noatime" "nodiratime" ];
};

fileSystems."/win" = {
device = "/dev/disk/by-label/win10";
fsType = "ntfs-3g";
options = [ "rw" "uid=1000"];
};
}
2 changes: 1 addition & 1 deletion hosts/laundry.nix
Expand Up @@ -102,7 +102,7 @@ args@{ config, lib, pkgs, ... }:
};
};

services.xserver = {
services = {
libinput = {
enable = true;
touchpad = {
Expand Down
2 changes: 1 addition & 1 deletion hosts/pepes.nix
Expand Up @@ -92,7 +92,7 @@
# home.file.".config/alacritty/alacritty-scratchpad.toml".source = ../users/kh/alacritty-laptop/alacritty-scratchpad.toml;
};

services.xserver = {
services = {
libinput = {
enable = true;
touchpad = {
Expand Down
96 changes: 0 additions & 96 deletions hosts/prism.nix

This file was deleted.

7 changes: 4 additions & 3 deletions hosts/sobanya.nix
Expand Up @@ -81,11 +81,12 @@ args@{ config, lib, pkgs, ... }:
};
};

services.displayManager = {
defaultSession = "none+leftwm";
};

# x
services.xserver = {
displayManager = {
defaultSession = "none+leftwm";
};
videoDrivers = [ "nouveau" "modesetting" ];
};

Expand Down
3 changes: 0 additions & 3 deletions hosts/tv.nix
Expand Up @@ -62,9 +62,6 @@ args@{ config, lib, pkgs, ... }:
home.file.".config/leftwm/themes/current/theme.toml".source = ../users/ksevelyar/leftwm-tv/theme.toml;

home.file.".config/polybar/config".source = ../users/shared/polybar/config-big;
# home.file.".config/alacritty/alacritty.toml".source = ../users/ksevelyar/alacritty-tv/alacritty.toml;
# home.file.".config/alacritty/alacritty-scratchpad.toml".source = ../users/ksevelyar/alacritty-tv/alacritty-scratchpad.toml;

home.file.".config/dunst/dunstrc".source = ../users/shared/dunst/dunstrc-big;
};
console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u32n.psf.gz";
Expand Down
8 changes: 4 additions & 4 deletions live-usb/live-usb.nix
@@ -1,4 +1,4 @@
# nix build /etc/nixos#nixosConfigurations.live-usb.config.system.build.isoImage
# nix build /etc/nixos#nixosConfigurations.live-usb.config.system.build.isoImage
args@{ config, pkgs, lib, ... }:
{
imports = [
Expand Down Expand Up @@ -41,10 +41,10 @@ args@{ config, pkgs, lib, ... }:
networking.networkmanager.enable = true; # nmtui for wi-fi
networking.wireless.enable = lib.mkForce false;

services.displayManager = {
autoLogin = { enable = true; user = "mrpoppybutthole"; };
};
services.xserver = {
displayManager = {
autoLogin = { enable = true; user = "mrpoppybutthole"; };
};
videoDrivers = [ "nvidia" "nouveau" "amdgpu" "vesa" "modesetting" ];
};
}
4 changes: 2 additions & 2 deletions packages/common.nix
Expand Up @@ -6,8 +6,8 @@
askPassword = "";
startAgent = true;
extraConfig = ''
Host *.local
Port 9922
Host *.local
Port 9922
'';
};

Expand Down
3 changes: 2 additions & 1 deletion packages/neovim.nix
Expand Up @@ -11,7 +11,8 @@

environment.systemPackages = with pkgs; [
# nix
rnix-lsp
nil
nixpkgs-fmt

# rust
rustfmt
Expand Down
10 changes: 1 addition & 9 deletions services/databases/postgresql.nix
Expand Up @@ -3,7 +3,7 @@ let
pg-backup = pkgs.writeScriptBin "pg-backup" ''
#!${pkgs.stdenv.shell}
set -e
backup_dir="~/.backup/pg"
excludes='template1 template0'
Expand Down Expand Up @@ -39,14 +39,6 @@ in
local all all trust
host all all localhost trust
'';
ensureUsers = [
{
name = "postgres";
ensurePermissions = {
"ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES";
};
}
];
};

environment.systemPackages = [
Expand Down
2 changes: 1 addition & 1 deletion services/net/router.nix
Expand Up @@ -11,7 +11,7 @@

networking.interfaces = {
enp3s0.useDHCP = true;
enp5s0.ipv4.addresses = [ { address = "192.168.0.1"; prefixLength = 24; } ];
enp5s0.ipv4.addresses = [{ address = "192.168.0.1"; prefixLength = 24; }];
};

networking.firewall = {
Expand Down
41 changes: 23 additions & 18 deletions services/x.nix
Expand Up @@ -32,19 +32,21 @@ in
services.greenclip.enable = true;
services.gvfs.enable = lib.mkForce false;

services.xserver = {
services.libinput = {
enable = true;

libinput = {
enable = true;
touchpad = {
accelProfile = lib.mkDefault "adaptive";
disableWhileTyping = true;
clickMethod = "buttonareas";
scrollMethod = lib.mkDefault "edge";
naturalScrolling = false;
};
touchpad = {
accelProfile = lib.mkDefault "adaptive";
disableWhileTyping = true;
clickMethod = "buttonareas";
scrollMethod = lib.mkDefault "edge";
naturalScrolling = false;
};
};

services.displayManager.defaultSession = lib.mkDefault "none+leftwm";

services.xserver = {
enable = true;

config = ''
Section "InputClass"
Expand All @@ -63,24 +65,27 @@ in
Option "OffTime" "0"
'';

displayManager.defaultSession = lib.mkDefault "none+leftwm";
displayManager.lightdm = {
enable = true;
greeters.enso = {
greeters.slick = {
enable = true;
blur = false;
theme = {
name = "Dracula";
package = pkgs.dracula-theme;
};
iconTheme = {
name = "ePapirus";
package = pkgs.papirus-icon-theme;
};
cursorTheme = {
name = "Vanilla-DMZ";
package = pkgs.vanilla-dmz;
};

extraConfig = ''
show-hostname=false
show-a11y=false
show-power=false
show-keyboard=false
show-clock=false
show-quit=false
'';
};
};

Expand Down
2 changes: 1 addition & 1 deletion sys/aliases.nix
Expand Up @@ -38,7 +38,7 @@

# nix
e = "nvim /etc/nixos/configuration.nix";
b = "sudo nixos-rebuild switch && tldr --update";
b = "sudo nixos-rebuild switch";
search = "nix search nixpkgs";
wipe-user-packages = "nix-env -e '*'";
nix-gc = "sudo nix-collect-garbage --delete-older-than 30d";
Expand Down
1 change: 0 additions & 1 deletion sys/debug.nix
Expand Up @@ -6,7 +6,6 @@
wheelNeedsPassword = lib.mkForce false;
};


systemd.services.sshd.wantedBy = lib.mkOverride 40 [ "multi-user.target" ];

services.openssh = {
Expand Down
2 changes: 1 addition & 1 deletion sys/fonts.nix
@@ -1,5 +1,5 @@
# https://www.programmingfonts.org/
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
fonts = {
enableDefaultPackages = true;
Expand Down

0 comments on commit d46914c

Please sign in to comment.