Compare commits

..

No commits in common. "a7e397db4b131407105eef03cc8d3ac74133adb1" and "86fe70eace18fdf6dcdf83883c63badf922190e7" have entirely different histories.

10 changed files with 99 additions and 109 deletions

View file

@ -189,11 +189,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1730274547, "lastModified": 1729232654,
"narHash": "sha256-34sNwbLNuE6l7jsBkBRUMRahoZc63lCsCa+PoZd/8W8=", "narHash": "sha256-Fa1U9nAX6ELyLOgHwMNIgpFK9u0WXreV97n8ZnCqY0E=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "49828459e58b6987d2738b74c085cecb963355ab", "rev": "c4213be70f7bc4c20aba7321decfd240a679fcd0",
"revCount": 19, "revCount": 18,
"type": "git", "type": "git",
"url": "https://git.xenia.me.uk/pixelifytica/iosevka.git" "url": "https://git.xenia.me.uk/pixelifytica/iosevka.git"
}, },
@ -220,11 +220,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1730883749, "lastModified": 1729691686,
"narHash": "sha256-mwrFF0vElHJP8X3pFCByJR365Q2463ATp2qGIrDUdlE=", "narHash": "sha256-BAuPWW+9fa1moZTU+jFh+1cUtmsuF8asgzFwejM4wac=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "dba414932936fde69f0606b4f1d87c5bc0003ede", "rev": "32e940c7c420600ef0d1ef396dc63b04ee9cad37",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,10 +1,8 @@
{ pkgs, username, ... }: { pkgs, username, ... }:
{ {
imports = [ imports = [ ./laptop.nix ];
./laptop.nix
./work.nix
];
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ ./home/work.nix ];
home.stateVersion = "23.05"; home.stateVersion = "23.05";
wayland.windowManager.hyprland.settings.monitor = [ wayland.windowManager.hyprland.settings.monitor = [
"eDP-1,preferred,auto,1.25" "eDP-1,preferred,auto,1.25"

View file

@ -1,10 +1,8 @@
{ pkgs, username, ... }: { pkgs, username, ... }:
{ {
imports = [ imports = [ ./desktop.nix ];
./desktop.nix
./work.nix
];
home-manager.users.${username} = { home-manager.users.${username} = {
imports = [ ./home/work.nix ];
home.stateVersion = "23.05"; home.stateVersion = "23.05";
wayland.windowManager.hyprland.settings.monitor = [ wayland.windowManager.hyprland.settings.monitor = [
"desc:Dell Inc. DELL P3223QE CCG8YN3,preferred,auto,1.5" "desc:Dell Inc. DELL P3223QE CCG8YN3,preferred,auto,1.5"

View file

@ -5,10 +5,8 @@
... ...
}: }:
{ {
imports = [ imports = [ ./desktop.nix ];
./desktop.nix environment.sessionVariables.MANGOHUD = 1;
./steam.nix
];
home-manager.users.${username} = { home-manager.users.${username} = {
home = { home = {
stateVersion = "23.05"; stateVersion = "23.05";
@ -19,6 +17,7 @@
freecad freecad
openscad openscad
kicad-small kicad-small
mangohud
wineWowPackages.waylandFull wineWowPackages.waylandFull
winetricks winetricks
lutris lutris
@ -39,6 +38,22 @@
"desc:Acer Technologies ED270R TJMEE0043W01,1920x1080@144,0x140,1.0,vrr,2" "desc:Acer Technologies ED270R TJMEE0043W01,1920x1080@144,0x140,1.0,vrr,2"
"desc:Microstep MSI G27CQ4 E2,2560x1440@144,1920x0,1.25,vrr,2" "desc:Microstep MSI G27CQ4 E2,2560x1440@144,1920x0,1.25,vrr,2"
]; ];
xdg.configFile."MangoHud/MangoHud.conf".text = with config.lib.stylix.scheme; ''
preset=1
text_color=${base00}
gpu_color=${green}
cpu_color=${green}
vram_color=${magenta}
ram_color=${magenta}
engine_color=${red}
io_color=${magenta}
frametime_color=${green}
background_color=${base05}
media_player_color=${base00}
wine_color=${red}
battery_color=${orange}
network_color=${red}
'';
}; };
boot = { boot = {
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
@ -56,10 +71,23 @@
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
}; };
steam-hardware.enable = true;
};
system.stateVersion = "23.05";
programs = {
gamemode.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
gamescope = {
enable = true;
capSysNice = true;
};
}; };
services.ollama = { services.ollama = {
enable = true; enable = true;
acceleration = "rocm"; acceleration = "rocm";
}; };
system.stateVersion = "23.05";
} }

View file

@ -56,6 +56,30 @@
max-free = ${toString (1024 * 1024 * 1024)} max-free = ${toString (1024 * 1024 * 1024)}
''; '';
}; };
nixpkgs = {
config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-original"
"steam-run"
"steamcmd"
"nomachine-client"
];
overlays = [
(final: prev: {
inherit (inputs.plasma-manager.packages.${prev.system}) rc2nix;
protonmail-bridge-gui = pkgs.symlinkJoin {
name = "protonmail-bridge-gui";
paths = [ prev.protonmail-bridge-gui ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/protonmail-bridge-gui --set PASSWORD_STORE_DIR /dev/null
'';
};
})
];
};
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
persistent = true; persistent = true;

View file

@ -27,8 +27,6 @@
webcord webcord
signal-desktop signal-desktop
whatsapp-for-linux whatsapp-for-linux
teams-for-linux
twinkle
]; ];
file.${config.gtk.gtk2.configLocation}.force = true; file.${config.gtk.gtk2.configLocation}.force = true;
}; };
@ -81,14 +79,6 @@
# Autostart some programs # Autostart some programs
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop"; "autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop"; "autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true;
closeAppOnCross = false;
followSystemTheme = true;
notificationMethod = "electron";
optInTeamsV2 = true;
spellCheckerLanguages = [ "en_GB" ];
};
}; };
}; };
} }

30
system/home/work.nix Normal file
View file

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ./openfortivpn/ukaea.nix ];
home.packages = with pkgs; [
nomachine-client
teams-for-linux
twinkle
];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
xdg.configFile = {
"autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop";
"teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true;
closeAppOnCross = false;
followSystemTheme = true;
notificationMethod = "electron";
optInTeamsV2 = true;
spellCheckerLanguages = [ "en_GB" ];
};
};
}

View file

@ -1,13 +1,6 @@
{ lib, ... }: { ... }:
{ {
imports = [ ./module.nix ]; imports = [ ./module.nix ];
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"steam-original"
"steam-run"
"steamcmd"
];
services.satisfactory-server = { services.satisfactory-server = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;

View file

@ -1,51 +0,0 @@
{
config,
lib,
pkgs,
username,
...
}:
{
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"steam"
"steam-unwrapped"
"steam-original"
"steam-run"
];
environment = {
sessionVariables.MANGOHUD = 1;
systemPackages = [ pkgs.mangohud ];
};
hardware.steam-hardware.enable = true;
programs = {
gamemode.enable = true;
steam = {
enable = true;
remotePlay.openFirewall = true;
gamescopeSession.enable = true;
};
gamescope = {
enable = true;
capSysNice = true;
};
};
home-manager.users.${username}.xdg.configFile."MangoHud/MangoHud.conf".text =
with config.lib.stylix.scheme; ''
preset=1
text_color=${base00}
gpu_color=${green}
cpu_color=${green}
vram_color=${magenta}
ram_color=${magenta}
engine_color=${red}
io_color=${magenta}
frametime_color=${green}
background_color=${base05}
media_player_color=${base00}
wine_color=${red}
battery_color=${orange}
network_color=${red}
'';
}

View file

@ -1,20 +0,0 @@
{
lib,
pkgs,
username,
...
}:
{
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "nomachine-client" ];
environment.systemPackages = [ pkgs.nomachine-client ];
home-manager.users.${username} =
{ config, ... }:
{
imports = [ ./home/openfortivpn/ukaea.nix ];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
accounts.email.accounts = {
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
};
}