Compare commits

..

1 commit
main ... sway

Author SHA1 Message Date
15e9870f45 add ibm3270 to fonts 2025-02-15 17:35:51 +01:00
9 changed files with 65 additions and 66 deletions

26
flake.lock generated
View file

@ -278,11 +278,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1740304046,
"narHash": "sha256-BaI27pORky5j8slRzGJTzaWR5tuKvY1z9I+n7n16YgM=",
"rev": "c64a9db6bb03d2755757188394d15fa1a0e12406",
"lastModified": 1739546930,
"narHash": "sha256-m9s8XjIFd9ByX45/mnsryQa0G5ncMjOBJE4kAOHPoUI=",
"rev": "1077bc626e8dfc153524da40eddad46ef893d66e",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/c64a9db6bb03d2755757188394d15fa1a0e12406.tar.gz?rev=c64a9db6bb03d2755757188394d15fa1a0e12406"
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/1077bc626e8dfc153524da40eddad46ef893d66e.tar.gz?rev=1077bc626e8dfc153524da40eddad46ef893d66e"
},
"original": {
"type": "tarball",
@ -387,11 +387,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1740089251,
"narHash": "sha256-Y78mDBWoO8CLLTjQfPfII+KXFb6lAmF9GrLbyVBsIMM=",
"lastModified": 1738816619,
"narHash": "sha256-5yRlg48XmpcX5b5HesdGMOte+YuCy9rzQkJz+imcu6I=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "18e9f9753e9ae261bcc7d3abe15745686991fd30",
"rev": "2eccff41bab80839b1d25b303b53d339fbb07087",
"type": "github"
},
"original": {
@ -403,11 +403,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1740162160,
"narHash": "sha256-SSYxFhqCOb3aiPb6MmN68yEzBIltfom8IgRz7phHscM=",
"lastModified": 1739484910,
"narHash": "sha256-wjWLzdM7PIq4ZAe7k3vyjtgVJn6b0UeodtRFlM/6W5U=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "11415c7ae8539d6292f2928317ee7a8410b28bb9",
"rev": "0b73e36b1962620a8ac551a37229dd8662dac5c8",
"type": "github"
},
"original": {
@ -447,11 +447,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1739866667,
"narHash": "sha256-EO1ygNKZlsAC9avfcwHkKGMsmipUk1Uc0TbrEZpkn64=",
"lastModified": 1739446958,
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "73cf49b8ad837ade2de76f87eb53fc85ed5d4680",
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
"type": "github"
},
"original": {

View file

@ -111,7 +111,7 @@
./modules/basic-tools
./modules/binary-caches.nix
./modules/devtools.nix
./modules/gnome.nix
./modules/sway.nix
./modules/gnupg.nix
./modules/radio.nix
./modules/science.nix

View file

@ -49,12 +49,6 @@
options = [ "zfsutil" ];
};
fileSystems."/tmp" = {
device = "zpool/nocomp/tmp";
fsType = "zfs";
options = [ "zfsutil" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A170-F83D";
fsType = "vfat";

View file

@ -1,31 +1,22 @@
{ lib, config, ... }:
{
{ lib, pkgs, ... }: {
imports = [
./mullvad.nix
./dumpdvb.nix
./zw.nix
];
# Networkmanager shouldn't interfere with systemd managed interfaces
networking.networkmanager.unmanaged =
let
systemd_netdevs = lib.attrsets.attrValues (
lib.attrsets.mapAttrs (_name: value: value.netdevConfig.Name) config.systemd.network.netdevs
);
in
systemd_netdevs;
environment.systemPackages = with pkgs; [ iwgtk impala ];
systemd.network = {
enable = true;
wait-online.enable = false; # uplink is managed by networkmanager
};
users.users."0xa".extraGroups = [ "networkmanager" ];
# kick out networkmanager
networking.networkmanager.enable = lib.mkForce false;
networking.useNetworkd = true;
systemd.network.enable = true;
networking = {
hostName = "toaster";
firewall.enable = true;
wireguard.enable = true;
wireless.iwd.enable = true;
};
services.resolved = {
@ -39,4 +30,34 @@
];
};
# we might have no interwebs at all
systemd.network.wait-online.enable = false;
# uplinks
systemd.network.networks = {
"10-ether-uplink" = {
matchConfig.Name = "enp1s0f0";
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
};
"10-dock-uplink" = {
matchConfig.Name = "enp5s0f4u1u1";
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
dhcpV4Config = { RouteMetric = 666; };
dhcpV6Config = { RouteMetric = 666; };
};
"wlan-uplink" = {
matchConfig.Name = "wlan0";
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
};
};
}

View file

@ -19,7 +19,6 @@
supportedFilesystems = [ "zfs" ];
kernelParams = [ "nohibernate" ];
plymouth.enable = false;
tmp.useTmpfs = false;
tmp.cleanOnBoot = true;
tmp.useTmpfs = true;
};
}

View file

@ -39,6 +39,7 @@
exfatprogs
nmap
bind
nnn
lf
man-pages
unzip
@ -49,17 +50,8 @@
sshfs
whois
mtr
joshuto
]
++ (
if config.networking.hostName == "toaster" then
[
gitFull
git-lfs
]
else
[ git ]
);
++ (if config.networking.hostName == "toaster" then [ gitFull git-lfs ] else [ git ]);
environment.variables =
let

View file

@ -5,15 +5,18 @@
dino
ffmpeg-full
firefox-wayland
vivaldi
vivaldi-ffmpeg-codecs
gimp
inkscape
signal-desktop
telegram-desktop
tdesktop
tor-browser
wl-clipboard
yt-dlp
element-desktop
discord
spotify
mpv
];
programs.steam.enable = true;

View file

@ -26,13 +26,7 @@
twemoji-color-font
twitter-color-emoji
iosevka-bin
cozette
(nerdfonts.override {
fonts = [
"Hack"
"3270"
];
})
(nerdfonts.override { fonts = [ "Hack" "3270" ]; })
];
fonts.enableDefaultPackages = true;

View file

@ -1,8 +1,5 @@
# General Desktop-related config
{ pkgs, inputs, ... }:
let
unstablepkgs = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
in
{ pkgs, ... }:
{
imports = [
./desktop-software.nix
@ -22,12 +19,11 @@ in
termusic
gsettings-desktop-schemas
xdg-utils
foot
qt5.qtwayland
bashmount
nautilus
audacity
spotify-player
zathura
ncdu
];
# Enable sound.
@ -65,15 +61,16 @@ in
'';
extraPackages = with pkgs; [
adwaita-icon-theme
alacritty
bluetui
foot
gammastep
graphicsmagick
grim
unstablepkgs.i3status-rust
i3status-rust
impala
kanshi
swaynotificationcenter
mako
pamixer
rofi-wayland
slurp
@ -81,7 +78,6 @@ in
swaylock
wl-clipboard
wl-mirror
xfce.thunar
];
};
environment.sessionVariables = {