Merge branch 'main' of github.com:fwastring/nix
This commit is contained in:
commit
336c146925
9 changed files with 117 additions and 22 deletions
|
@ -123,7 +123,7 @@
|
||||||
(st.overrideAttrs (oldAttrs: rec {
|
(st.overrideAttrs (oldAttrs: rec {
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
url = "https://github.com/fwastring/st";
|
url = "https://github.com/fwastring/st";
|
||||||
rev = "9b95aafa2bcb3f4f991a5fc2c7cb939ce3f550b2";
|
rev = "de286ce570c23e037a0e5fb7d84ac7226aef1259";
|
||||||
};
|
};
|
||||||
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config];
|
buildInputs = oldAttrs.buildInputs ++ [ xorg.libX11.dev xorg.libXft imlib2 xorg.libXinerama pkg-config];
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -12,6 +12,11 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
timewarrior
|
timewarrior
|
||||||
|
|
||||||
|
kubectl
|
||||||
|
azure-cli
|
||||||
|
dotnetCorePackages.sdk_8_0_3xx
|
||||||
|
docker-slim
|
||||||
|
|
||||||
sqlc
|
sqlc
|
||||||
postgresql
|
postgresql
|
||||||
argocd
|
argocd
|
||||||
|
@ -29,7 +34,6 @@
|
||||||
unstable.k9s
|
unstable.k9s
|
||||||
git
|
git
|
||||||
lazydocker
|
lazydocker
|
||||||
kubectl
|
|
||||||
gcc
|
gcc
|
||||||
gnumake
|
gnumake
|
||||||
cmake
|
cmake
|
||||||
|
|
|
@ -28,5 +28,9 @@
|
||||||
feh
|
feh
|
||||||
pavucontrol
|
pavucontrol
|
||||||
scrot
|
scrot
|
||||||
|
imagemagick
|
||||||
|
pandoc
|
||||||
|
texliveFull
|
||||||
|
mpv
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
# System
|
# System
|
||||||
|
libnotify
|
||||||
xsel
|
xsel
|
||||||
xbanish
|
xbanish
|
||||||
unzip
|
unzip
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -76,7 +76,15 @@
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
myhostname = "jobb";
|
myhostname = "jobb";
|
||||||
};
|
};
|
||||||
modules = [ ./maskiner/jobb/configuration.nix ];
|
modules = [
|
||||||
|
(
|
||||||
|
{ nixpkgs, ... }:
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ overlay-unstable ];
|
||||||
|
}
|
||||||
|
)
|
||||||
|
./maskiner/jobb/configuration.nix
|
||||||
|
];
|
||||||
};
|
};
|
||||||
work-desktop = nixpkgs.lib.nixosSystem {
|
work-desktop = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
|
|
@ -12,32 +12,108 @@
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../config/base.nix
|
|
||||||
../../shared/openssh.nix
|
../../shared/openssh.nix
|
||||||
../../jobb/users.nix
|
../../config/users.nix
|
||||||
|
../../config/dev.nix
|
||||||
|
../../config/lsp.nix
|
||||||
|
../../config/network.nix
|
||||||
|
../../config/system.nix
|
||||||
];
|
];
|
||||||
|
nixpkgs = {
|
||||||
environment.systemPackages = with pkgs; [
|
overlays = [
|
||||||
kubectl
|
];
|
||||||
azure-cli
|
config = {
|
||||||
dotnetCorePackages.sdk_8_0_3xx
|
allowUnfree = true;
|
||||||
k3s
|
};
|
||||||
cifs-utils
|
|
||||||
nfs-utils
|
|
||||||
docker-slim
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [ 5173 ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.k3s.enable = false;
|
nix.registry = (lib.mapAttrs (_: flake: { inherit flake; })) (
|
||||||
|
(lib.filterAttrs (_: lib.isType "flake")) inputs
|
||||||
|
);
|
||||||
|
nix.nixPath = [ "/etc/nix/path" ];
|
||||||
|
users.defaultUserShell = pkgs.bash;
|
||||||
|
documentation.man.generateCaches = false;
|
||||||
|
programs.fish.enable = true;
|
||||||
|
programs.bash = {
|
||||||
|
interactiveShellInit = ''
|
||||||
|
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
||||||
|
then
|
||||||
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
||||||
|
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
environment.etc = lib.mapAttrs' (name: value: {
|
||||||
|
name = "nix/path/${name}";
|
||||||
|
value.source = value.flake;
|
||||||
|
}) config.nix.registry;
|
||||||
|
|
||||||
services.openiscsi = {
|
nix.settings = {
|
||||||
|
experimental-features = "nix-command flakes";
|
||||||
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
name = "iqn.2016-04.com.open-iscsi:work-desktop";
|
liveRestore = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services = {
|
||||||
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "nvim";
|
||||||
|
TERM = "xterm-256color";
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Stockholm";
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerd-fonts.comic-shanns-mono
|
||||||
|
nerd-fonts.fira-code
|
||||||
|
];
|
||||||
|
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "sv_SE.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "sv_SE.UTF-8";
|
||||||
|
LC_MEASUREMENT = "sv_SE.UTF-8";
|
||||||
|
LC_MONETARY = "sv_SE.UTF-8";
|
||||||
|
LC_NAME = "sv_SE.UTF-8";
|
||||||
|
LC_NUMERIC = "sv_SE.UTF-8";
|
||||||
|
LC_PAPER = "sv_SE.UTF-8";
|
||||||
|
LC_TELEPHONE = "sv_SE.UTF-8";
|
||||||
|
LC_TIME = "sv_SE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.loader = {
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = false;
|
||||||
|
};
|
||||||
|
grub = {
|
||||||
|
efiSupport = true;
|
||||||
|
efiInstallAsRemovable = true;
|
||||||
|
device = "nodev";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
console.keyMap = "sv-latin1";
|
||||||
|
|
||||||
|
services = {
|
||||||
|
xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb = {
|
||||||
|
layout = "se";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
networking.hostName = myhostname;
|
networking.hostName = myhostname;
|
||||||
|
|
||||||
services.xserver.dpi = 140;
|
services.xserver.dpi = 140;
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
global = {
|
global = {
|
||||||
width = 300;
|
width = 300;
|
||||||
height = 300;
|
height = 300;
|
||||||
|
follow = "keyboard";
|
||||||
offset = "30x50";
|
offset = "30x50";
|
||||||
origin = "top-right";
|
origin = "top-right";
|
||||||
transparency = 5;
|
transparency = 5;
|
||||||
|
|
|
@ -8,7 +8,7 @@ let
|
||||||
dwm = pkgs.dwm.overrideAttrs (old: {
|
dwm = pkgs.dwm.overrideAttrs (old: {
|
||||||
src = builtins.fetchGit {
|
src = builtins.fetchGit {
|
||||||
url = "https://github.com/FredzyW/dwm-conf.git";
|
url = "https://github.com/FredzyW/dwm-conf.git";
|
||||||
rev = "e9d94d70c3865a1289c20382df21acc3a138ed88";
|
rev = "eaf3279653491212fe9945d41938bfcaba990d64";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
xorg.libX11.dev
|
xorg.libX11.dev
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
settings = {
|
settings = {
|
||||||
AuthenticationMethods = "publickey password";
|
AuthenticationMethods = "publickey password";
|
||||||
TrustedUserCAKeys = "/etc/ssh/ssh_ca.pub";
|
TrustedUserCAKeys = "/etc/ssh/ssh_ca.pub";
|
||||||
|
X11Forwarding = true;
|
||||||
Banner = "none";
|
Banner = "none";
|
||||||
PasswordAuthentication = true;
|
PasswordAuthentication = true;
|
||||||
# PasswordAuthentication = false;
|
# PasswordAuthentication = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue