Compare commits
9 commits
f023bf160d
...
5f7dc29d25
Author | SHA1 | Date | |
---|---|---|---|
5f7dc29d25 | |||
9056600dc8 | |||
206be0599b | |||
e54b354770 | |||
82cec5c3e5 | |||
24b3e96009 | |||
6a24fbfacf | |||
911f90670e | |||
e7b2b28818 |
13 changed files with 69 additions and 80 deletions
34
flake.lock
34
flake.lock
|
@ -7,16 +7,16 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1700392168,
|
||||
"narHash": "sha256-v5LprEFx3u4+1vmds9K0/i7sHjT0IYGs7u9v54iz/OA=",
|
||||
"lastModified": 1700814205,
|
||||
"narHash": "sha256-lWqDPKHRbQfi+zNIivf031BUeyciVOtwCwTjyrhDB5g=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "28535c3a34d79071f2ccb68671971ce0c0984d7e",
|
||||
"rev": "aeb2232d7a32530d3448318790534d196bf9427a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "release-23.05",
|
||||
"ref": "release-23.11",
|
||||
"repo": "home-manager",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -28,11 +28,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1701071203,
|
||||
"narHash": "sha256-lQywA7QU/vzTdZ1apI0PfgCWNyQobXUYghVrR5zuIeM=",
|
||||
"lastModified": 1701433070,
|
||||
"narHash": "sha256-Gf9JStfENaUQ7YWFz3V7x/srIwr4nlnVteqaAxtwpgM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "db1878f013b52ba5e4034db7c1b63e8d04173a86",
|
||||
"rev": "4a8545f5e737a6338814a4676dc8e18c7f43fc57",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -79,11 +79,11 @@
|
|||
},
|
||||
"nixos-hardware": {
|
||||
"locked": {
|
||||
"lastModified": 1701020860,
|
||||
"narHash": "sha256-NwnRn04C8s+hH+KdVtGmVB1FFNIG7DtPJmQSCBDaET4=",
|
||||
"lastModified": 1701250978,
|
||||
"narHash": "sha256-ohu3cz4edjpGxs2qUTgbs0WrnewOX4crnUJNEB6Jox4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixos-hardware",
|
||||
"rev": "b006ec52fce23b1d57f6ab4a42d7400732e9a0a2",
|
||||
"rev": "8772491ed75f150f02552c60694e1beff9f46013",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -95,27 +95,27 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1701053011,
|
||||
"narHash": "sha256-8QQ7rFbKFqgKgLoaXVJRh7Ik5LtI3pyBBCfOnNOGkF0=",
|
||||
"lastModified": 1701263465,
|
||||
"narHash": "sha256-lNXUIlkfyDyp9Ox21hr+wsEf/IBklLvb6bYcyeXbdRc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5b528f99f73c4fad127118a8c1126b5e003b01a9",
|
||||
"rev": "50aa30a13c4ab5e7ba282da460a3e3d44e9d0eb3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-23.05",
|
||||
"ref": "nixos-23.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1700794826,
|
||||
"narHash": "sha256-RyJTnTNKhO0yqRpDISk03I/4A67/dp96YRxc86YOPgU=",
|
||||
"lastModified": 1701253981,
|
||||
"narHash": "sha256-ztaDIyZ7HrTAfEEUt9AtTDNoCYxUdSd6NrRHaYOIxtk=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5a09cb4b393d58f9ed0d9ca1555016a8543c2ac8",
|
||||
"rev": "e92039b55bcd58469325ded85d4f58dd5a4eaf58",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs = {
|
||||
url = "github:NixOS/nixpkgs/nixos-23.05";
|
||||
url = "github:NixOS/nixpkgs/nixos-23.11";
|
||||
};
|
||||
nixpkgs-unstable = {
|
||||
url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
@ -23,7 +23,7 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system
|
||||
};
|
||||
home-manager = {
|
||||
url = "github:nix-community/home-manager/release-23.05";
|
||||
url = "github:nix-community/home-manager/release-23.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs"; # use the same nixpkgs as the system
|
||||
};
|
||||
home-manager-unstable = {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
# 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.05"; # Did you read the comment?
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
|
@ -37,5 +37,5 @@
|
|||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home-manager.users.caspervk.home.stateVersion = "23.05"; # Did you read the comment?
|
||||
home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
# 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.05"; # Did you read the comment?
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
|
@ -33,5 +33,5 @@
|
|||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home-manager.users.caspervk.home.stateVersion = "23.05"; # Did you read the comment?
|
||||
home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
# 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.05"; # Did you read the comment?
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
|
@ -50,5 +50,5 @@
|
|||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home-manager.users.caspervk.home.stateVersion = "23.05"; # Did you read the comment?
|
||||
home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
# 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.05"; # Did you read the comment?
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
# This value determines the Home Manager release that your
|
||||
# configuration is compatible with. This helps avoid breakage
|
||||
|
@ -33,5 +33,5 @@
|
|||
# You can update Home Manager without changing this value. See
|
||||
# the Home Manager release notes for a list of state version
|
||||
# changes in each release.
|
||||
home-manager.users.caspervk.home.stateVersion = "23.05"; # Did you read the comment?
|
||||
home-manager.users.caspervk.home.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
|
@ -8,15 +8,15 @@
|
|||
# TODO: The passwordfile is manually generated during the initial setup
|
||||
# to avoid (hashed) secrets in the public git repo. It should replaced
|
||||
# with a proper secret management scheme, such as agenix.
|
||||
passwordFile = "/nix/persist/passwordfile";
|
||||
hashedPasswordFile = "/nix/persist/passwordfile";
|
||||
};
|
||||
caspervk = {
|
||||
isNormalUser = true;
|
||||
description = "Casper V. Kristensen";
|
||||
# TODO: The passwordfile is manually generated during the initial setup
|
||||
# to avoid (hashed) secrets in the public git repo. It should replaced
|
||||
# with a proper secret management scheme, such as agenix.
|
||||
passwordFile = "/nix/persist/passwordfile";
|
||||
# TODO: The hashedPasswordFile is manually generated during the initial
|
||||
# setup to avoid (hashed) secrets in the public git repo. It should
|
||||
# replaced with a proper secret management scheme, such as agenix.
|
||||
hashedPasswordFile = "/nix/persist/passwordfile";
|
||||
extraGroups = [
|
||||
"wheel" # allows sudo
|
||||
"video" # allows controlling brightness
|
||||
|
|
|
@ -17,12 +17,4 @@
|
|||
{ directory = "/etc/NetworkManager/system-connections"; user = "root"; group = "root"; mode = "0700"; }
|
||||
];
|
||||
};
|
||||
|
||||
# systemd-networkd-wait-online can timeout and fail if there are no network
|
||||
# interfaces available for it to manage. When systemd-networkd is enabled but
|
||||
# a different service is responsible for managing the system's internet
|
||||
# connection (for example, NetworkManager), this service is unnecessary and
|
||||
# can be disabled.
|
||||
# https://search.nixos.org/options?channel=23.05&show=systemd.network.wait-online.enable
|
||||
systemd.network.wait-online.enable = false;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
{ home-manager, lib, pkgs, ... }: {
|
||||
# https://nixos.wiki/wiki/Sway
|
||||
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
|
||||
# Polkit is required to configure sway with home-manager
|
||||
security.polkit.enable = true;
|
||||
|
||||
|
@ -242,13 +247,13 @@
|
|||
|
||||
# https://nixos.wiki/wiki/Fonts
|
||||
fonts = {
|
||||
fonts = with pkgs; [
|
||||
enableDefaultPackages = true;
|
||||
packages = with pkgs; [
|
||||
# Nerd Fonts patches glyph icons, such as from Font Awesome, into existing fonts
|
||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
font-awesome # waybar uses Font Awesome icons directly
|
||||
];
|
||||
fontDir.enable = true; # TODO?
|
||||
enableDefaultFonts = true;
|
||||
fontconfig.defaultFonts = {
|
||||
monospace = [ "JetBrainsMonoNL Nerd Font" ]; # NL = NoLigatures
|
||||
};
|
||||
|
@ -268,14 +273,16 @@
|
|||
];
|
||||
|
||||
# xdg portal allows applications secure access to resources outside their
|
||||
# sandbox. In particular, this allows screen sharing on Wayland via PipeWire
|
||||
# and file open/save dialogues in Firefox.
|
||||
# sandbox through a D-Bus interface. In particular, this allows screen
|
||||
# sharing on Wayland via PipeWire and file open/save dialogues in Firefox.
|
||||
# https://wiki.archlinux.org/title/XDG_Desktop_Portal
|
||||
# https://mozilla.github.io/webrtc-landing/gum_test.html
|
||||
services.dbus.enable = true;
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-wlr
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{ home-manager, pkgs, ... }: {
|
||||
{ home-manager, ... }: {
|
||||
# https://nixos.wiki/wiki/Virt-manager
|
||||
|
||||
virtualisation.libvirtd.enable = true;
|
||||
environment.systemPackages = with pkgs; [ virt-manager ];
|
||||
|
||||
# Virt-manager requires dconf to remember settings
|
||||
programs.dconf.enable = true;
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
# Make virt-manager use QEMU/KVM by default
|
||||
home-manager.users.caspervk = {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
group = "users";
|
||||
# The directory where synchronised directories will exist
|
||||
dataDir = "/home/caspervk";
|
||||
settings = {
|
||||
# Devices ignore their own IDs, allowing for a single configuration.
|
||||
# TODO: Syncthing generates a private key and ID the first time it is
|
||||
# started. On first install, add the devices' ID here and apply to the
|
||||
|
@ -35,4 +36,5 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
./ripgrep.nix
|
||||
];
|
||||
imports = [ ];
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{ home-manager, home-manager-unstable, ... }: {
|
||||
# ripgrep isn't in Home Manager v23.05
|
||||
|
||||
home-manager.users.caspervk = {
|
||||
imports = [ "${home-manager-unstable}/modules/programs/ripgrep.nix" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue