Skip to content

Commit

Permalink
Some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoth committed May 6, 2024
1 parent e544649 commit 174aca6
Show file tree
Hide file tree
Showing 14 changed files with 275 additions and 158 deletions.
104 changes: 61 additions & 43 deletions flake.lock

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

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
specialArgs = {
inherit inputs;
hostname = "pcLexell";
stateVersion = "23.11";
};
};
};
Expand Down
7 changes: 4 additions & 3 deletions machines/pcLexell/awesome/awesome/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end
-- }}}

-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
-- Themes define colours, icons, font, etc
beautiful.init(gears.filesystem.get_themes_dir() .. "mytheme/theme.lua")

-- This is used later as the default terminal and editor to run.
Expand Down Expand Up @@ -176,7 +176,7 @@ local tasklist_buttons = gears.table.join(

local function set_wallpaper(s)
-- Wallpaper
-- beautiful.wallpaper = false
--beautiful.wallpaper = false
if beautiful.wallpaper then
local wallpaper = beautiful.wallpaper
-- If wallpaper is a function, call it with the screen
Expand All @@ -185,8 +185,9 @@ local function set_wallpaper(s)
end
gears.wallpaper.maximized(wallpaper, s, true)
else
gears.wallpaper.set(beautiful.bg_normal)
gears.wallpaper.set(beautiful.bg_normal)
end
--gears.wallpaper.set(beautiful.bg_normal)
end

-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
Expand Down
3 changes: 2 additions & 1 deletion machines/pcLexell/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{
config,
pkgs,
stateVersion,
...
}: {
imports = [
Expand Down Expand Up @@ -99,5 +100,5 @@
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.11"; # Did you read the comment?
system.stateVersion = stateVersion; # Did you read the comment?
}
22 changes: 20 additions & 2 deletions machines/pcLexell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ in {
defaultNetwork.settings.dns_enabled = true;
autoPrune.enable = true;
#defaultNetwork.settings.dns_enabled = true;
enableNvidia = true; # Enable use of NVidia GPUs from within containers
#extraOptions = "--iptables=false"; # Makes shure that Podman/Docker doesn't alter the firewall
};
containers.cdi.dynamic.nvidia.enable = true;
};

nixpkgs.config.permittedInsecurePackages = [
Expand All @@ -150,7 +150,7 @@ in {
environment.systemPackages = with pkgs; [
htop
btop
nvtop
nvtopPackages.full
glances
age
rage
Expand Down Expand Up @@ -235,7 +235,25 @@ in {

# Drawing
krita
inkscape
xournal

skrooge
libreoffice-fresh

iperf2
inetutils

uget

# Ai
llama-cpp
ollama
# Term clients
oterm # Ollama terminal client
aichat # Terminal frontend for ollama, ChatGPT, etc
gpt4all
jan # Jan is an open source alternative to ChatGPT that runs 100% offline on your computer
];

console = {
Expand Down
2 changes: 1 addition & 1 deletion machines/pcLexell/gpg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in {
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "qt";
pinentryPackage = pkgs.pinentry-qt;
};

environment.shellAliases = {
Expand Down
30 changes: 30 additions & 0 deletions machines/pcLexell/i3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
config,
pkgs,
lib,
inputs,
...
}: {
services.xserver = {
windowManager.i3 = {
enable = true;
};
displayManager.defaultSession = "none+i3";
};

home-manager.users.moth = {pkgs, ...}: {
xsession.windowManager.command = ''
# See init.fish oncecall function
export ONCECALL="/tmp/oncecall-moth"
picom -b
${pkgs.i3}/bin/i3;
'';
};

programs.light.enable = true;

environment.systemPackages = with pkgs; [
picom
brightnessctl
];
}
Loading

0 comments on commit 174aca6

Please sign in to comment.