migrate to plasm6 - minimal

This commit is contained in:
Cyryl Płotnicki 2024-03-16 08:57:55 +00:00
parent 08ca6897cf
commit 4a70cd6410
9 changed files with 30 additions and 95 deletions

View file

@ -242,20 +242,20 @@
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs-stable" "nixpkgs-nixos-unstable"
] ]
}, },
"locked": { "locked": {
"lastModified": 1706981411, "lastModified": 1710532761,
"narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=", "narHash": "sha256-SUXGZNrXX05YA9G6EmgupxhOr3swI1gcxLUeDMUhrEY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "652fda4ca6dafeb090943422c34ae9145787af37", "rev": "206f457fffdb9a73596a4cb2211a471bd305243d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.11", "ref": "master",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }

View file

@ -159,7 +159,7 @@
}; };
nixosConfigurations = { nixosConfigurations = {
foryog = mkWorkstation nixpkgs-stable "x86_64-linux" "foryog"; foryog = mkWorkstation nixpkgs-nixos-unstable "x86_64-linux" "foryog";
thinky = mkWorkstation nixpkgs-stable "x86_64-linux" "thinky"; thinky = mkWorkstation nixpkgs-stable "x86_64-linux" "thinky";
bolty = mkServer nixpkgs-stable "x86_64-linux" "bolty"; bolty = mkServer nixpkgs-stable "x86_64-linux" "bolty";
vpsfree1 = mkServer nixpkgs-stable "x86_64-linux" "vpsfree1"; vpsfree1 = mkServer nixpkgs-stable "x86_64-linux" "vpsfree1";
@ -274,8 +274,8 @@
type = "github"; type = "github";
owner = "nix-community"; owner = "nix-community";
repo = "home-manager"; repo = "home-manager";
ref = "release-23.11"; ref = "master";
inputs.nixpkgs.follows = "nixpkgs-stable"; inputs.nixpkgs.follows = "nixpkgs-nixos-unstable";
}; };
flake-utils = { flake-utils = {
type = "github"; type = "github";

View file

@ -1,24 +1,12 @@
{ { config, pkgs, inputs, lib, system, ... }: {
config,
pkgs,
inputs,
lib,
system,
...
}: {
networking.hostName = "foryog"; networking.hostName = "foryog";
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../backups.nix ../../backups.nix
../../boot.nix ../../boot.nix
../../emacs
../../git ../../git
../../gnome ../../kde
../../gui
../../gui/vscode
../../libvirt.nix
../../mercurial
../../vim ../../vim
../../zsh ../../zsh
]; ];
@ -28,7 +16,8 @@
services.restic.backups.home-to-b2 = { services.restic.backups.home-to-b2 = {
repository = lib.mkForce "b2:cyplo-restic-foureighty:/"; repository = lib.mkForce "b2:cyplo-restic-foureighty:/";
}; };
boot.kernelParams = ["initcall_debug" ''dyndbg="file suspend.c +p"'' "no_console_suspend"]; boot.kernelParams =
[ "initcall_debug" ''dyndbg="file suspend.c +p"'' "no_console_suspend" ];
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
boot.plymouth = { boot.plymouth = {
@ -47,17 +36,6 @@
hardware.trackpoint.enable = true; hardware.trackpoint.enable = true;
hardware.keyboard.qmk.enable = true; hardware.keyboard.qmk.enable = true;
services.udev.packages = [ pkgs.qmk-udev-rules ]; services.udev.packages = [ pkgs.qmk-udev-rules ];
services.xserver = {
libinput = {
enable = true;
touchpad = {
tapping = true;
naturalScrolling = false;
middleEmulation = false;
disableWhileTyping = true;
};
};
};
services.fprintd = { enable = true; }; services.fprintd = { enable = true; };
programs.ccache.enable = true; programs.ccache.enable = true;
hardware.opengl.extraPackages = with pkgs; [ libva ]; hardware.opengl.extraPackages = with pkgs; [ libva ];
@ -75,10 +53,7 @@
]; ];
home-manager.users.cyryl = { ... }: { home-manager.users.cyryl = { ... }: {
imports = [ imports = [ ../../home-manager/programs/kitty.nix ];
../../home-manager/programs/kitty.nix
../../home-manager/programs/helix.nix
];
home.packages = home.packages =
(with inputs.nixpkgs-master.legacyPackages."${system}"; [ bisq-desktop ]) (with inputs.nixpkgs-master.legacyPackages."${system}"; [ bisq-desktop ])
++ (with pkgs; [ lutris ]) ++ (with pkgs; [ lutris ])

View file

@ -1,8 +1,4 @@
{ { config, pkgs, ... }: {
config,
pkgs,
...
}: {
console.keyMap = "pl2"; console.keyMap = "pl2";
imports = [ ./tailscale ]; imports = [ ./tailscale ];
services = { services = {
@ -25,23 +21,5 @@
}; };
geoclue2.enable = true; geoclue2.enable = true;
xserver = {
enable = true;
layout = "pl";
xkbOptions = "caps:ctrl_modifier";
xkbVariant = "";
libinput = {
enable = true;
touchpad = {
naturalScrolling = false;
disableWhileTyping = true;
};
};
deviceSection = ''
Option "TearFree" "true"
Option "AccelMethod" "sna"
'';
};
}; };
} }

View file

@ -32,7 +32,7 @@
home.packages = home.packages =
(with pkgs; (with pkgs;
with pkgs.gnome3; with pkgs.gnome3;
with pkgs.python38Packages; [ with pkgs.python39Packages; [
anarchism anarchism
calibre calibre
cheese cheese

View file

@ -31,7 +31,7 @@
url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix"; url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw="; sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw=";
}; };
buildInputs = with pkgs; [llvm lldb python38 autoPatchelfHook]; buildInputs = with pkgs; [llvm lldb python39 autoPatchelfHook];
}) })
] ]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [

View file

@ -6,7 +6,6 @@
}: { }: {
services.gpg-agent = { services.gpg-agent = {
enable = true; enable = true;
pinentryFlavor = "curses";
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
appimage-run appimage-run

View file

@ -36,7 +36,6 @@
eza = { eza = {
enable = true; enable = true;
enableAliases = true;
git = true; git = true;
icons = true; icons = true;
}; };

View file

@ -7,26 +7,9 @@
}: let }: let
master = inputs.nixpkgs-master; master = inputs.nixpkgs-master;
pkgs = master.legacyPackages."${system}"; pkgs = master.legacyPackages."${system}";
lib = pkgs.lib;
utils = pkgs.utils;
in { in {
disabledModules = [ disabledModules = [];
"services/x11/desktop-managers.plasma5.nix" imports = [];
"programs/chromium.nix"
];
imports = [
({
pkgs,
lib,
config,
utils,
...
}:
import "${master}/nixos/modules/services/x11/desktop-managers/plasma6.nix" {
inherit pkgs lib config utils;
})
"${master}/nixos/modules/programs/chromium.nix"
];
services.flatpak.enable = true; services.flatpak.enable = true;
@ -35,6 +18,7 @@ in {
displayManager.sddm = { displayManager.sddm = {
enable = true; enable = true;
enableHidpi = true; enableHidpi = true;
wayland.enable = true;
}; };
desktopManager.plasma6.enable = true; desktopManager.plasma6.enable = true;
}; };