Merge branch 'framework/master' into zenix/master
This commit is contained in:
commit
0a21167cc4
11 changed files with 32 additions and 73 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -391,11 +391,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750400657,
|
"lastModified": 1750622754,
|
||||||
"narHash": "sha256-3vkjFnxCOP6vm5Pm13wC/Zy6/VYgei/I/2DWgW4RFeA=",
|
"narHash": "sha256-kMhs+YzV4vPGfuTpD3mwzibWUE6jotw5Al2wczI0Pv8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b2485d56967598da068b5a6946dadda8bfcbcd37",
|
"rev": "c7ab75210cb8cb16ddd8f290755d9558edde7ee1",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -430,11 +430,11 @@
|
||||||
"systems": "systems_2"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750149910,
|
"lastModified": 1750512587,
|
||||||
"narHash": "sha256-M0WNjAy2FCHJAb1hEp+J2gnMk707K5/iTA24amEu/s8=",
|
"narHash": "sha256-kZqTQEARUkkKDFhECd0MGU4wXCJcxCdh5WeM/yD6oI4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "1252966779a5632a3cd5238e442d55a1d2f56660",
|
"rev": "b04bcdcbba4aa648903e065ad1907a97d4f7aee9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -549,11 +549,11 @@
|
||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1750370365,
|
"lastModified": 1750697672,
|
||||||
"narHash": "sha256-Yblt2LusglzBXlg+ekckztIUgvl1WQwJ7gLRJEt/IHE=",
|
"narHash": "sha256-F8z6QXKRZfVKwTj8+Uw920tHGDmiRIOD+BsA6wVGOgY=",
|
||||||
"owner": "danth",
|
"owner": "danth",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "cc82dae884f45ffeb996d2b5116afa70933e507f",
|
"rev": "438a702dc2a49a48eae380623cdc04fe36ef5422",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
37
flake.nix
37
flake.nix
|
|
@ -59,22 +59,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
FCS-Tristan-Nixbook = mkConf {
|
|
||||||
nixos-modules = [
|
|
||||||
./hardware/fcs-tristan-nixbook.nix
|
|
||||||
./nixos/workstation.nix
|
|
||||||
./nixos/modules/work.nix
|
|
||||||
./nixos/programs/cosmic.nix
|
|
||||||
./nixos/programs/libvertd.nix
|
|
||||||
./nixos/programs/hyprland.nix
|
|
||||||
];
|
|
||||||
home-modules = [
|
|
||||||
./home/programs/work.nix
|
|
||||||
./home/programs/graphical.nix
|
|
||||||
./home/desktop/cosmic/laptop.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
framework-13 = mkConf {
|
framework-13 = mkConf {
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
./hardware/framework-13.nix
|
./hardware/framework-13.nix
|
||||||
|
|
@ -85,6 +69,7 @@
|
||||||
home-modules = [
|
home-modules = [
|
||||||
./home/programs/work.nix
|
./home/programs/work.nix
|
||||||
./home/programs/graphical.nix
|
./home/programs/graphical.nix
|
||||||
|
./home/desktop/cosmic/.
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -109,26 +94,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
vm-sway =
|
|
||||||
builtins.trace ''
|
|
||||||
use super+enter to start a terminal.
|
|
||||||
use super+d to launch applications
|
|
||||||
|
|
||||||
start the vm with '-vga qxl' or '-vga virtio'
|
|
||||||
''
|
|
||||||
mkConf
|
|
||||||
{
|
|
||||||
nixos-modules = [
|
|
||||||
./hardware/vm.nix
|
|
||||||
(auto-login "sway")
|
|
||||||
./nixos/workstation.nix
|
|
||||||
];
|
|
||||||
home-modules = [
|
|
||||||
./home/desktop/sway/.
|
|
||||||
./home/workstation.nix
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
vm-cosmic =
|
vm-cosmic =
|
||||||
mkConf
|
mkConf
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,7 @@ in {
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
system.stateVersion = "24.05"; # don't change.
|
system.stateVersion = "24.05"; # don't change.
|
||||||
home-manager.users.${user}.imports = [
|
home-manager.users.${user}.imports = [
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
boot.extraModulePackages = [];
|
boot.extraModulePackages = [];
|
||||||
|
|
||||||
|
services.btrfs.autoScrub.enable = true;
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/mapper/crypted";
|
device = "/dev/mapper/crypted";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
|
||||||
|
|
@ -49,16 +49,7 @@ in {
|
||||||
output = "all";
|
output = "all";
|
||||||
rotation_frequency = 600;
|
rotation_frequency = 600;
|
||||||
sampling_method = mkRON "enum" "Alphanumeric";
|
sampling_method = mkRON "enum" "Alphanumeric";
|
||||||
scaling_mode = mkRON "enum" {
|
scaling_mode = mkRON "enum" "Zoom";
|
||||||
value = [
|
|
||||||
(mkRON "tuple" [
|
|
||||||
0.5
|
|
||||||
1.0
|
|
||||||
(mkRON "raw" "0.345354352")
|
|
||||||
])
|
|
||||||
];
|
|
||||||
variant = "Fit";
|
|
||||||
};
|
|
||||||
source = mkRON "enum" {
|
source = mkRON "enum" {
|
||||||
value = [ (toString config.stylix.image) ];
|
value = [ (toString config.stylix.image) ];
|
||||||
variant = "Path";
|
variant = "Path";
|
||||||
|
|
|
||||||
|
|
@ -247,13 +247,6 @@ in {
|
||||||
vim.lsp.buf.format({async = false})
|
vim.lsp.buf.format({async = false})
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
|
||||||
event = "BufWritePre";
|
|
||||||
pattern = "*.ts";
|
|
||||||
callback = luaFunc ''
|
|
||||||
vim.lsp.buf.format()
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
|
|
@ -284,6 +277,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lsp-format.enable = true;
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inlayHints = true;
|
inlayHints = true;
|
||||||
|
|
|
||||||
|
|
@ -96,8 +96,7 @@ in {
|
||||||
sops
|
sops
|
||||||
lsof
|
lsof
|
||||||
nix-tree
|
nix-tree
|
||||||
nix-index
|
comma
|
||||||
nh
|
|
||||||
jq
|
jq
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -109,4 +108,9 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = ["systemd"];
|
enabledCollectors = ["systemd"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.command-not-found.enable = false;
|
||||||
|
programs.nix-index.enable = true;
|
||||||
|
programs.nh.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{...}: {
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
services.desktopManager.cosmic.enable = true;
|
services.desktopManager.cosmic.enable = true;
|
||||||
services.displayManager.cosmic-greeter.enable = true;
|
services.displayManager.cosmic-greeter.enable = true;
|
||||||
|
# fix for shutdown, not yet in 25.05
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/412260/commits/27c3430d620adfed574674e36a89a52be80f01d9
|
||||||
|
services.geoclue2.enable = true;
|
||||||
|
services.geoclue2.enableDemoAgent = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
name = "dashboards";
|
name = "dashboards";
|
||||||
paths = map mkDashboard dashboards;
|
paths = map mkDashboard dashboards;
|
||||||
};
|
};
|
||||||
mkDashboard = {name, url, sha256}: pkgs.writeTextFile {
|
mkDashboard = {name, url, sha256, patch ? lib.id}: pkgs.writeTextFile {
|
||||||
inherit name;
|
inherit name;
|
||||||
text = builtins.readFile ( builtins.fetchurl {inherit url sha256;} );
|
text = patch (builtins.readFile ( builtins.fetchurl {inherit url sha256;} ));
|
||||||
destination = "/dash/${name}.json";
|
destination = "/dash/${name}.json";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|
@ -42,6 +42,8 @@ in {
|
||||||
name = "node-exporter";
|
name = "node-exporter";
|
||||||
url = "https://grafana.com/api/dashboards/1860/revisions/37/download";
|
url = "https://grafana.com/api/dashboards/1860/revisions/37/download";
|
||||||
sha256 = "sha256:0qza4j8lywrj08bqbww52dgh2p2b9rkhq5p313g72i57lrlkacfl";
|
sha256 = "sha256:0qza4j8lywrj08bqbww52dgh2p2b9rkhq5p313g72i57lrlkacfl";
|
||||||
|
# https://github.com/rfmoz/grafana-dashboards/issues/169
|
||||||
|
patch = builtins.replaceStrings ["$__rate_interval"] ["$__range"];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "synapse";
|
name = "synapse";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
inherit (config.services) prometheus;
|
inherit (config.services) prometheus;
|
||||||
nodes = [
|
nodes = [
|
||||||
"alpine"
|
"alpine"
|
||||||
"100.106.49.128"
|
"100.106.49.128" # laptop
|
||||||
"zenix"
|
"100.65.29.110" # gaming pc
|
||||||
];
|
];
|
||||||
addPort = ip: "${ip}:${toString prometheus.exporters.node.port}";
|
addPort = ip: "${ip}:${toString prometheus.exporters.node.port}";
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
qt.enable = true;
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue